Add toot:discoverable support

This commit is contained in:
Chocobozzz
2026-06-11 10:00:46 +02:00
parent c5d831ef98
commit c82dd858e8
4 changed files with 6 additions and 1 deletions
@@ -43,4 +43,5 @@ export interface ActivityPubActor {
playerSettings?: string
indexable?: boolean
discoverable?: boolean
}
@@ -47,6 +47,7 @@ describe('Test ActivityPub', function () {
expect(object.preferredUsername).to.equal('root')
expect(object.indexable).to.be.true
expect(object.discoverable).to.be.true
if (hasIcon) {
expect(arrayify(object.icon).map(i => i.width)).to.deep.equal([ 120, 48, 600, 1500 ])
@@ -75,6 +76,7 @@ describe('Test ActivityPub', function () {
expect(object.preferredUsername).to.equal('root_channel')
expect(object.indexable).to.be.true
expect(object.discoverable).to.be.true
if (hasIcon) {
expect(arrayify(object.icon).map(i => i.width)).to.deep.equal([ 120, 48, 600, 1500 ])