mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-19 09:13:27 +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;
|
const inStock = reactions.length === limit + 1;
|
||||||
if (inStock) reactions.pop();
|
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(
|
const rendered = this.apRendererService.renderOrderedCollectionPage(
|
||||||
`${partOf}?${url.query({
|
`${partOf}?${url.query({
|
||||||
page: 'true',
|
page: 'true',
|
||||||
cursor,
|
cursor,
|
||||||
})}`,
|
})}`,
|
||||||
reactionsCount, reactedNoteUris, partOf,
|
reactionsCount, reactedNotes, partOf,
|
||||||
undefined,
|
undefined,
|
||||||
inStock ? `${partOf}?${url.query({
|
inStock ? `${partOf}?${url.query({
|
||||||
page: 'true',
|
page: 'true',
|
||||||
|
|
Loading…
Reference in a new issue