enhance(backend): embed liked collection into actor object

This commit is contained in:
Daiki Mizukami 2024-08-20 01:44:05 +09:00
parent f4ea906516
commit 0949c0e0cd
No known key found for this signature in database
GPG Key ID: 10478E598B944AA2

View File

@ -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` },