diff --git a/packages/backend/src/server/api/mastodon/helpers/timeline.ts b/packages/backend/src/server/api/mastodon/helpers/timeline.ts index efe4d2cfb..a09883a08 100644 --- a/packages/backend/src/server/api/mastodon/helpers/timeline.ts +++ b/packages/backend/src/server/api/mastodon/helpers/timeline.ts @@ -44,6 +44,7 @@ export class TimelineHelpers { generateMutedUserRenotesQueryForNotes(query, user); query.andWhere("note.visibility != 'hidden'"); + query.andWhere("note.visibility != 'specified'"); return PaginationHelpers.execQuery(query, limit, minId !== undefined); } @@ -74,8 +75,7 @@ export class TimelineHelpers { if (local) query.andWhere("note.userHost IS NULL"); if (!local) query.andWhere("note.channelId IS NULL"); - query - .leftJoinAndSelect("note.renote", "renote"); + query.leftJoinAndSelect("note.renote", "renote"); generateRepliesQuery(query, true, user); if (user) { @@ -87,8 +87,6 @@ export class TimelineHelpers { if (onlyMedia) query.andWhere("note.fileIds != '{}'"); - query.andWhere("note.visibility != 'hidden'"); - return PaginationHelpers.execQuery(query, limit, minId !== undefined); } }