1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 01:36:03 +02:00
This commit is contained in:
syuilo
2023-01-01 09:35:14 +09:00
parent 37ef9b70a3
commit 6f51e7300e
3 changed files with 4 additions and 2 deletions

View File

@@ -81,6 +81,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'),
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
.andWhere('note.createdAt > :minDate', { minDate: new Date(Date.now() - (1000 * 60 * 60 * 24 * 30)) }) // 30日前まで
.andWhere(new Brackets(qb => {
qb.where(`((note.userId IN (${ followingQuery.getQuery() })) OR (note.userId = :meId))`, { meId: me.id })
.orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)');