mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
enhance(backend): embed liked
collection into actor object
This commit is contained in:
parent
f4ea906516
commit
0949c0e0cd
@ -472,6 +472,16 @@ export class ApRendererService {
|
||||
|
||||
const hashtagTags = user.tags.map(tag => this.renderHashtag(tag));
|
||||
|
||||
let liked;
|
||||
if (profile.publicReactions) {
|
||||
const likedId = `${id}/liked`;
|
||||
liked = this.renderOrderedCollection(
|
||||
likedId,
|
||||
undefined,
|
||||
`${likedId}?page=true`,
|
||||
);
|
||||
}
|
||||
|
||||
const tag = [
|
||||
...apemojis,
|
||||
...hashtagTags,
|
||||
@ -486,7 +496,7 @@ export class ApRendererService {
|
||||
outbox: `${id}/outbox`,
|
||||
followers: `${id}/followers`,
|
||||
following: `${id}/following`,
|
||||
liked: `${id}/liked`,
|
||||
liked,
|
||||
featured: `${id}/collections/featured`,
|
||||
sharedInbox: `${this.config.url}/inbox`,
|
||||
endpoints: { sharedInbox: `${this.config.url}/inbox` },
|
||||
|
Loading…
Reference in New Issue
Block a user