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 ])
+2 -1
View File
@@ -258,7 +258,8 @@ const contextStore: { [id in ContextType]: (string | { [id: string]: string })[]
postingRestrictedToMods: 'lemmy:postingRestrictedToMods',
toot: 'http://joinmastodon.org/ns#',
indexable: 'toot:indexable'
indexable: 'toot:indexable',
discoverable: 'toot:discoverable'
}),
WatchAction: buildContext({
+1
View File
@@ -738,6 +738,7 @@ export class ActorModel extends SequelizeModel<ActorModel> {
published: this.getCreatedAt().toISOString(),
indexable: true,
discoverable: true,
icon,