mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-25 07:36:18 +09:00
stuff?
This commit is contained in:
parent
de7db2cc3e
commit
a8b3bdaebd
@ -70,12 +70,11 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||
.select('meta.recommendedInstances')
|
||||
.where('meta.recommendedInstances = ANY');
|
||||
|
||||
//#region Construct query
|
||||
const query = makePaginationQuery(Notes.createQueryBuilder('note'),
|
||||
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
|
||||
.andWhere(new Brackets(qb => {
|
||||
qb.where(`((note.userHost IN (${ recommendedQuery.getQuery() }))`)
|
||||
.orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)');
|
||||
qb.where(`((note.userHost IN (${ recommendedQuery.getQuery() }))`);
|
||||
// .orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)');
|
||||
}))
|
||||
.andWhere('(note.visibility = \'public\')')
|
||||
.innerJoinAndSelect('note.user', 'user')
|
||||
|
Loading…
Reference in New Issue
Block a user