refactor: rename funout to fanout

This commit is contained in:
zyoshoka
2023-11-26 11:12:23 +09:00
parent dc0c1cb0a1
commit e49b57ad4e
@@ -15,7 +15,7 @@ import { UserEntityService } from '@/core/entities/UserEntityService.js';
import { DriveFileEntityService } from '@/core/entities/DriveFileEntityService.js'; import { DriveFileEntityService } from '@/core/entities/DriveFileEntityService.js';
import { bindThis } from '@/decorators.js'; import { bindThis } from '@/decorators.js';
import { IdService } from '@/core/IdService.js'; import { IdService } from '@/core/IdService.js';
import { FunoutTimelineService } from '@/core/FunoutTimelineService.js'; import { FanoutTimelineService } from '@/core/FanoutTimelineService.js';
import type { FastifyReply, FastifyRequest } from 'fastify'; import type { FastifyReply, FastifyRequest } from 'fastify';
export type FeedFormat = 'atom' | 'rss' | 'json'; export type FeedFormat = 'atom' | 'rss' | 'json';
@@ -41,7 +41,7 @@ export class FeedService {
private userEntityService: UserEntityService, private userEntityService: UserEntityService,
private driveFileEntityService: DriveFileEntityService, private driveFileEntityService: DriveFileEntityService,
private idService: IdService, private idService: IdService,
private funoutTimelineService: FunoutTimelineService, private fanoutTimelineService: FanoutTimelineService,
) { ) {
} }
@@ -67,7 +67,7 @@ export class FeedService {
let withFilesIds: string[] = []; let withFilesIds: string[] = [];
if (opts.withFiles) { if (opts.withFiles) {
withFilesIds = await this.funoutTimelineService.get(`userTimelineWithFiles:${user.id}`); withFilesIds = await this.fanoutTimelineService.get(`userTimelineWithFiles:${user.id}`);
} }
const notes = await this.notesRepository.find({ const notes = await this.notesRepository.find({