mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-01 02:46:20 +01:00
enhance(backend): embed local notes in liked
collection
This commit is contained in:
parent
985d582166
commit
69bf40341d
1 changed files with 2 additions and 2 deletions
|
@ -410,13 +410,13 @@ export class ActivityPubServerService {
|
|||
const inStock = reactions.length === limit + 1;
|
||||
if (inStock) reactions.pop();
|
||||
|
||||
const reactedNoteUris = await Promise.all(reactions.map(reaction => reaction.note!.uri || `${this.config.url}/notes/${reaction.note!.uri}`));
|
||||
const reactedNotes = await Promise.all(reactions.map(({ note }) => note!.uri || this.apRendererService.renderNote(note!, false)));
|
||||
const rendered = this.apRendererService.renderOrderedCollectionPage(
|
||||
`${partOf}?${url.query({
|
||||
page: 'true',
|
||||
cursor,
|
||||
})}`,
|
||||
reactionsCount, reactedNoteUris, partOf,
|
||||
reactionsCount, reactedNotes, partOf,
|
||||
undefined,
|
||||
inStock ? `${partOf}?${url.query({
|
||||
page: 'true',
|
||||
|
|
Loading…
Reference in a new issue