diff options
Diffstat (limited to '')
| -rw-r--r-- | src/server/activitypub.ts | 6 | ||||
| -rw-r--r-- | src/server/activitypub/outbox.ts | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/server/activitypub.ts b/src/server/activitypub.ts index 8da933a0f6..888feb08ce 100644 --- a/src/server/activitypub.ts +++ b/src/server/activitypub.ts @@ -66,7 +66,8 @@ router.get('/notes/:note', async (ctx, next) => { const note = await Note.findOne({ _id: new mongo.ObjectID(ctx.params.note), - visibility: { $in: ['public', 'home'] } + visibility: { $in: ['public', 'home'] }, + localOnly: { $ne: true } }); if (note === null) { @@ -83,7 +84,8 @@ router.get('/notes/:note', async (ctx, next) => { router.get('/notes/:note/activity', async ctx => { const note = await Note.findOne({ _id: new mongo.ObjectID(ctx.params.note), - visibility: { $in: ['public', 'home'] } + visibility: { $in: ['public', 'home'] }, + localOnly: { $ne: true } }); if (note === null) { diff --git a/src/server/activitypub/outbox.ts b/src/server/activitypub/outbox.ts index 24d4e3730e..6b917ef843 100644 --- a/src/server/activitypub/outbox.ts +++ b/src/server/activitypub/outbox.ts @@ -55,7 +55,8 @@ export default async (ctx: Router.IRouterContext) => { const query = { userId: user._id, - visibility: { $in: ['public', 'home'] } + visibility: { $in: ['public', 'home'] }, + localOnly: { $ne: true } } as any; if (sinceId) { |