lint
This commit is contained in:
parent
1ed06e490c
commit
567c550120
13 changed files with 28 additions and 31 deletions
|
|
@ -1,9 +1,6 @@
|
|||
import rndstr from 'rndstr';
|
||||
import { Note } from '@/models/entities/Note.js';
|
||||
import { User } from '@/models/entities/User.js';
|
||||
import { Notes, UserProfiles, NoteReactions } from '@/models/index.js';
|
||||
import { generateMutedUserQuery } from './generate-muted-user-query.js';
|
||||
import { generateBlockedUserQuery } from './generate-block-query.js';
|
||||
import type { Note } from '@/models/entities/Note.js';
|
||||
import type { User } from '@/models/entities/User.js';
|
||||
|
||||
// TODO: リアクション、Renote、返信などをしたノートは除外する
|
||||
|
||||
|
|
@ -21,9 +18,9 @@ export async function injectFeatured(timeline: Note[], user?: User | null) {
|
|||
const query = Notes.createQueryBuilder('note')
|
||||
.addSelect('note.score')
|
||||
.where('note.userHost IS NULL')
|
||||
.andWhere(`note.score > 0`)
|
||||
.andWhere(`note.createdAt > :date`, { date: new Date(Date.now() - day) })
|
||||
.andWhere(`note.visibility = 'public'`)
|
||||
.andWhere('note.score > 0')
|
||||
.andWhere('note.createdAt > :date', { date: new Date(Date.now() - day) })
|
||||
.andWhere('note.visibility = \'public\'')
|
||||
.innerJoinAndSelect('note.user', 'user');
|
||||
|
||||
if (user) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue