This commit is contained in:
ThatOneCalculator 2022-07-28 22:17:59 -07:00
parent 4ac0540d01
commit 1af22f0bc2

View File

@ -29,7 +29,7 @@ export const meta = {
errors: { errors: {
ltlDisabled: { ltlDisabled: {
message: 'Recommended timeline has been disabled.', message: 'Recommended timeline has been disabled.',
code: 'LTL_DISABLED', code: 'RTL_DISABLED',
id: '45a6eb02-7695-4393-b023-dd3be9aaaefe', id: '45a6eb02-7695-4393-b023-dd3be9aaaefe',
}, },
}, },
@ -68,7 +68,7 @@ export default define(meta, paramDef, async (ps, user) => {
//#region Construct query //#region Construct query
const query = makePaginationQuery(Notes.createQueryBuilder('note'), const query = makePaginationQuery(Notes.createQueryBuilder('note'),
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate) ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
.andWhere('(note.visibility = \'public\') AND (note.userHost = ANY(meta.recommendedInstances))') .andWhere('(note.visibility = \'public\')') // AND (note.userHost = ANY(meta.recommendedInstances))')
.innerJoinAndSelect('note.user', 'user') .innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('user.avatar', 'avatar') .leftJoinAndSelect('user.avatar', 'avatar')
.leftJoinAndSelect('user.banner', 'banner') .leftJoinAndSelect('user.banner', 'banner')