Implement featured note injection
This commit is contained in:
parent
3d79e7a136
commit
d9986b7a2f
19 changed files with 117 additions and 16 deletions
|
|
@ -196,7 +196,8 @@ export class NoteRepository extends Repository<Note> {
|
|||
renoteId: note.renoteId,
|
||||
mentions: note.mentions.length > 0 ? note.mentions : undefined,
|
||||
uri: note.uri || undefined,
|
||||
_prInjectionId_: (note as any)._prInjectionId_ || undefined,
|
||||
_featuredId_: (note as any)._featuredId_ || undefined,
|
||||
_prId_: (note as any)._prId_ || undefined,
|
||||
|
||||
...(opts.detail ? {
|
||||
reply: note.replyId ? this.pack(note.replyId, meId, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue