Skip to content
Snippets Groups Projects
Commit df0a90f6 authored by syuilo's avatar syuilo
Browse files

fix type

parent 7670f364
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ import type { UserKeypair } from '@/models/entities/UserKeypair.js';
import type { UsersRepository, UserProfilesRepository, NotesRepository, DriveFilesRepository, EmojisRepository, PollsRepository } from '@/models/index.js';
import { LdSignatureService } from './LdSignatureService.js';
import { ApMfmService } from './ApMfmService.js';
import type { IActivity } from './type.js';
import type { IActivity, IObject } from './type.js';
import type { IIdentifier } from './models/identifier.js';
@Injectable()
......@@ -276,7 +276,7 @@ export class ApRendererService {
};
}
public async renderNote(note: Note, dive = true, isTalk = false): Promise<Record<string, unknown>> {
public async renderNote(note: Note, dive = true, isTalk = false): Promise<IObject> {
const getPromisedFiles = async (ids: string[]) => {
if (!ids || ids.length === 0) return [];
const items = await this.driveFilesRepository.findBy({ id: In(ids) });
......@@ -399,8 +399,8 @@ export class ApRendererService {
id: `${this.config.url}/notes/${note.id}`,
type: 'Note',
attributedTo,
summary,
content,
summary: summary ?? undefined,
content: content ?? undefined,
_misskey_content: text,
source: {
content: text,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment