mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 03:01:32 +03:00
Explicitly set AP post as public. Closes #2112
This commit is contained in:
parent
8215475425
commit
c3722256fb
1 changed files with 5 additions and 0 deletions
|
@ -173,6 +173,11 @@ func SendPublicMessage(textContent string) error {
|
||||||
activity, _, note, noteID := createBaseOutboundMessage(textContent)
|
activity, _, note, noteID := createBaseOutboundMessage(textContent)
|
||||||
note.SetActivityStreamsTag(tagProp)
|
note.SetActivityStreamsTag(tagProp)
|
||||||
|
|
||||||
|
if !data.GetFederationIsPrivate() {
|
||||||
|
note = apmodels.MakeNotePublic(note)
|
||||||
|
activity = apmodels.MakeActivityPublic(activity)
|
||||||
|
}
|
||||||
|
|
||||||
b, err := apmodels.Serialize(activity)
|
b, err := apmodels.Serialize(activity)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorln("unable to serialize custom fediverse message activity", err)
|
log.Errorln("unable to serialize custom fediverse message activity", err)
|
||||||
|
|
Loading…
Reference in a new issue