mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-03-21 22:29:00 +01:00
enhance(backend): embed liked
collection into actor object
This commit is contained in:
parent
f4ea906516
commit
0949c0e0cd
1 changed files with 11 additions and 1 deletions
|
@ -472,6 +472,16 @@ export class ApRendererService {
|
||||||
|
|
||||||
const hashtagTags = user.tags.map(tag => this.renderHashtag(tag));
|
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 = [
|
const tag = [
|
||||||
...apemojis,
|
...apemojis,
|
||||||
...hashtagTags,
|
...hashtagTags,
|
||||||
|
@ -486,7 +496,7 @@ export class ApRendererService {
|
||||||
outbox: `${id}/outbox`,
|
outbox: `${id}/outbox`,
|
||||||
followers: `${id}/followers`,
|
followers: `${id}/followers`,
|
||||||
following: `${id}/following`,
|
following: `${id}/following`,
|
||||||
liked: `${id}/liked`,
|
liked,
|
||||||
featured: `${id}/collections/featured`,
|
featured: `${id}/collections/featured`,
|
||||||
sharedInbox: `${this.config.url}/inbox`,
|
sharedInbox: `${this.config.url}/inbox`,
|
||||||
endpoints: { sharedInbox: `${this.config.url}/inbox` },
|
endpoints: { sharedInbox: `${this.config.url}/inbox` },
|
||||||
|
|
Loading…
Add table
Reference in a new issue