Explicitly set AP post as public. Closes #2112

This commit is contained in:
Gabe Kangas 2022-10-28 23:25:26 -07:00
parent 8177628748
commit 3a401991cf
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA

View file

@ -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)