Skip to content

Commit

Permalink
Explicitly set AP post as public. Closes owncast#2112
Browse files Browse the repository at this point in the history
  • Loading branch information
gabek committed Oct 29, 2022
1 parent 8215475 commit c372225
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions activitypub/outbox/outbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c372225

Please sign in to comment.