mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
test :(
This commit is contained in:
parent
cef356b7b8
commit
d9f111bb31
@ -65,10 +65,12 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||
}
|
||||
}
|
||||
|
||||
// AND (note.userHost = ANY(meta.recommendedInstances))')
|
||||
|
||||
//#region Construct query
|
||||
const query = makePaginationQuery(Notes.createQueryBuilder('note'),
|
||||
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
|
||||
.andWhere('(note.visibility = \'public\' AND (note.userHost = ANY(meta.recommendedInstances))')
|
||||
.andWhere('(note.visibility = \'public\'')
|
||||
.innerJoinAndSelect('note.user', 'user')
|
||||
.leftJoinAndSelect('user.avatar', 'avatar')
|
||||
.leftJoinAndSelect('user.banner', 'banner')
|
||||
|
@ -26,6 +26,9 @@ export default class extends Channel {
|
||||
|
||||
private async onNote(note: Packed<'Note'>) {
|
||||
const meta = await fetchMeta();
|
||||
console.log(meta.disableRecommendedTimeline);
|
||||
console.log(meta.recommendedInstances);
|
||||
console.log(note.user.host);
|
||||
if (note.user.host !== null && !meta.recommendedInstances.includes(note.user.host)) return;
|
||||
if (note.visibility !== 'public') return;
|
||||
if (note.channelId != null && !this.followingChannels.has(note.channelId)) return;
|
||||
|
Loading…
Reference in New Issue
Block a user