Implement featured note injection
This commit is contained in:
@@ -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, {
|
||||
|
||||
@@ -227,6 +227,7 @@ export class UserRepository extends Repository<User> {
|
||||
avatarId: user.avatarId,
|
||||
bannerId: user.bannerId,
|
||||
autoWatch: profile!.autoWatch,
|
||||
injectFeaturedNote: profile!.injectFeaturedNote,
|
||||
alwaysMarkNsfw: profile!.alwaysMarkNsfw,
|
||||
carefulBot: profile!.carefulBot,
|
||||
autoAcceptFollowed: profile!.autoAcceptFollowed,
|
||||
|
||||
Reference in New Issue
Block a user