summaryrefslogtreecommitdiff
path: root/packages/backend/src
diff options
context:
space:
mode:
authorMarie <github@yuugi.dev>2025-02-10 16:18:06 +0000
committerMarie <github@yuugi.dev>2025-02-10 16:18:06 +0000
commit816ce293fbec4e748e6a26f74d7c4cd18863a91c (patch)
tree172ae0bd0ccd4f4c5e4979f536fe2691c482cdd4 /packages/backend/src
parentmerge: add missing translations for admin perms - fixes #918 (!893) (diff)
parentsearch-by-tags returns "home" notes - fixes #933 (diff)
downloadsharkey-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>
Diffstat (limited to 'packages/backend/src')
-rw-r--r--packages/backend/src/server/api/endpoints/notes/search-by-tag.ts2
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')