[backend/federation] Include fully rendered renote target in rendered activity when renote user matches
This commit is contained in:
parent
fe7d85fa91
commit
2519f382c5
1 changed files with 5 additions and 2 deletions
|
@ -274,8 +274,11 @@ public class NoteService(
|
|||
|
||||
var actor = userRenderer.RenderLite(user);
|
||||
ASActivity activity = note is { IsPureRenote: true, Renote: not null }
|
||||
? ActivityPub.ActivityRenderer.RenderAnnounce(noteRenderer.RenderLite(note.Renote),
|
||||
note.GetPublicUri(config.Value), actor, note.Visibility,
|
||||
? ActivityPub.ActivityRenderer.RenderAnnounce(note.Renote.User == note.User
|
||||
? await noteRenderer.RenderAsync(note.Renote)
|
||||
: noteRenderer.RenderLite(note.Renote),
|
||||
note.GetPublicUri(config.Value), actor,
|
||||
note.Visibility,
|
||||
user.GetPublicUri(config.Value) + "/followers")
|
||||
: ActivityPub.ActivityRenderer.RenderCreate(await noteRenderer.RenderAsync(note, mentions), actor);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue