diff options
| author | Marie <github@yuugi.dev> | 2025-02-10 16:18:06 +0000 |
|---|---|---|
| committer | Marie <github@yuugi.dev> | 2025-02-10 16:18:06 +0000 |
| commit | 816ce293fbec4e748e6a26f74d7c4cd18863a91c (patch) | |
| tree | 172ae0bd0ccd4f4c5e4979f536fe2691c482cdd4 | |
| parent | merge: add missing translations for admin perms - fixes #918 (!893) (diff) | |
| parent | search-by-tags returns "home" notes - fixes #933 (diff) | |
| download | sharkey-816ce293fbec4e748e6a26f74d7c4cd18863a91c.tar.gz sharkey-816ce293fbec4e748e6a26f74d7c4cd18863a91c.tar.bz2 sharkey-816ce293fbec4e748e6a26f74d7c4cd18863a91c.zip | |
merge: search-by-tags returns "home" notes - fixes #933 (!891)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/891
Closes #933
Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
| -rw-r--r-- | packages/backend/src/server/api/endpoints/notes/search-by-tag.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/search-by-tag.ts b/packages/backend/src/server/api/endpoints/notes/search-by-tag.ts index 227ac0ebbf..6bba7bf37e 100644 --- a/packages/backend/src/server/api/endpoints/notes/search-by-tag.ts +++ b/packages/backend/src/server/api/endpoints/notes/search-by-tag.ts @@ -87,7 +87,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- ) { super(meta, paramDef, async (ps, me) => { const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), ps.sinceId, ps.untilId) - .andWhere('note.visibility = \'public\'') + .andWhere("note.visibility IN ('public', 'home')") // keep in sync with NoteCreateService call to `hashtagService.updateHashtags()` .innerJoinAndSelect('note.user', 'user') .leftJoinAndSelect('note.reply', 'reply') .leftJoinAndSelect('note.renote', 'renote') |