summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Kangas <gabek@real-ity.com>2022-01-05 14:33:19 -0800
committerGabe Kangas <gabek@real-ity.com>2022-01-06 23:02:49 -0800
commitf72523fa18f7684c78eb5e5e2d12c35a687fc607 (patch)
tree3218cc60eed835fb416d61b383efa1384ca7005f
parenteef2ec5fded7098e8a2884cb51d5498bc8844158 (diff)
Remove overly using the stream name in fediverse engagement messages
-rw-r--r--activitypub/apmodels/activity.go4
-rw-r--r--activitypub/inbox/chat.go6
2 files changed, 7 insertions, 3 deletions
diff --git a/activitypub/apmodels/activity.go b/activitypub/apmodels/activity.go
index 070bd1bf4..cb6b19a5f 100644
--- a/activitypub/apmodels/activity.go
+++ b/activitypub/apmodels/activity.go
@@ -34,6 +34,10 @@ func MakeCreateActivity(activityID *url.URL) vocab.ActivityStreamsCreate {
cc := streams.NewActivityStreamsCcProperty()
cc.AppendIRI(public)
activity.SetActivityStreamsCc(cc)
+
+ bcc := streams.NewActivityStreamsBccProperty()
+ bcc.AppendIRI(public)
+ activity.SetActivityStreamsBcc(bcc)
}
return activity
diff --git a/activitypub/inbox/chat.go b/activitypub/inbox/chat.go
index 67ff31013..3b75427d9 100644
--- a/activitypub/inbox/chat.go
+++ b/activitypub/inbox/chat.go
@@ -34,15 +34,15 @@ func handleEngagementActivity(eventType events.EventType, isLiveNotification boo
userPrefix := fmt.Sprintf("%s ", actorName)
var suffix string
if isLiveNotification && action == events.FediverseEngagementLike {
- suffix = fmt.Sprintf("liked that %s went live.", data.GetServerName())
+ suffix = "liked that this stream went live."
} else if action == events.FediverseEngagementLike {
suffix = fmt.Sprintf("liked a post from %s.", data.GetServerName())
} else if isLiveNotification && action == events.FediverseEngagementRepost {
- suffix = fmt.Sprintf("shared that %s went live.", data.GetServerName())
+ suffix = "shared this stream with their followers."
} else if action == events.FediverseEngagementRepost {
suffix = fmt.Sprintf("shared a post from %s.", data.GetServerName())
} else if action == events.FediverseEngagementFollow {
- suffix = fmt.Sprintf("followed %s.", data.GetServerName())
+ suffix = "followed this stream."
} else {
return fmt.Errorf("could not handle event for sending to chat: %s", action)
}