Merge remote-tracking branch 'misskey-dev/develop' into io
This commit is contained in:
commit
e4ee9580e3
88 changed files with 1371 additions and 871 deletions
|
@ -77,7 +77,11 @@ export class NoteReactionEntityService implements OnModuleInit {
|
|||
withNote: boolean;
|
||||
},
|
||||
) : Promise<Packed<'NoteReaction'>[]> {
|
||||
return (await Promise.allSettled(reactions.map(x => this.pack(x, me, options))))
|
||||
const opts = Object.assign({
|
||||
withNote: false,
|
||||
}, options);
|
||||
|
||||
return (await Promise.allSettled(reactions.map(x => this.pack(x, me, opts))))
|
||||
.filter(result => result.status === 'fulfilled')
|
||||
.map(result => (result as PromiseFulfilledResult<Packed<'NoteReaction'>>).value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue