Skip to content

Commit

Permalink
always allow Announce of public posts
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Jan 19, 2024
1 parent e71695b commit b28a22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inbox/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func processActivity(ctx context.Context, domain string, cfg *cfg.Config, log *s
return errors.New("received Announce for private post")
}

if post.AttributedTo != sender.ID && !post.To.Contains(sender.ID) && !post.CC.Contains(sender.ID) {
if !post.IsPublic() && post.AttributedTo != sender.ID && !post.To.Contains(sender.ID) && !post.CC.Contains(sender.ID) {
return errors.New("sender is not post author or recipient")
}

Expand Down

0 comments on commit b28a22d

Please sign in to comment.