From c3722256fb7697005cac52648088f37d7211194a Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 28 Oct 2022 23:25:26 -0700 Subject: [PATCH] Explicitly set AP post as public. Closes #2112 --- activitypub/outbox/outbox.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/activitypub/outbox/outbox.go b/activitypub/outbox/outbox.go index 0e0d89a10..043520e27 100644 --- a/activitypub/outbox/outbox.go +++ b/activitypub/outbox/outbox.go @@ -173,6 +173,11 @@ func SendPublicMessage(textContent string) error { activity, _, note, noteID := createBaseOutboundMessage(textContent) note.SetActivityStreamsTag(tagProp) + if !data.GetFederationIsPrivate() { + note = apmodels.MakeNotePublic(note) + activity = apmodels.MakeActivityPublic(activity) + } + b, err := apmodels.Serialize(activity) if err != nil { log.Errorln("unable to serialize custom fediverse message activity", err)