Browse Source

Explicitly set AP post as public. Closes #2112

pull/2272/head
Gabe Kangas 3 years ago
parent
commit
c3722256fb
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 5
      activitypub/outbox/outbox.go

5
activitypub/outbox/outbox.go

@ -173,6 +173,11 @@ func SendPublicMessage(textContent string) error { @@ -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)

Loading…
Cancel
Save