mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Add toot:discoverable support
This commit is contained in:
@@ -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 ])
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -738,6 +738,7 @@ export class ActorModel extends SequelizeModel<ActorModel> {
|
||||
published: this.getCreatedAt().toISOString(),
|
||||
|
||||
indexable: true,
|
||||
discoverable: true,
|
||||
|
||||
icon,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user