Skip to content
Snippets Groups Projects
Commit 816ce293 authored by Marie's avatar Marie 🚅
Browse files

merge: search-by-tags returns "home" notes - fixes #933 (!891)

View MR for information: !891



Closes #933

Approved-by: default avatarHazelnoot <acomputerdog@gmail.com>
Approved-by: default avatarMarie <github@yuugi.dev>
parents 58ad9b13 7b507485
No related branches found
No related tags found
2 merge requests!9272025.2.2,!891search-by-tags returns "home" notes - fixes #933
Pipeline #2438 canceled with stages
in 1 minute and 9 seconds
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment