summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Kangas <gabek@real-ity.com>2022-01-04 16:03:50 -0800
committerGabe Kangas <gabek@real-ity.com>2022-01-06 23:02:49 -0800
commit280e6d1e85fb37147b1635ea5e85088b182c9f7e (patch)
tree438435840e71d4c0eef210dddd955a79402b7065
parent1cd7040cf4d1c6e14e9a2c6ed04f31362671c8b4 (diff)
Do not send profile updates if federation is disabled
-rw-r--r--activitypub/outbox/outbox.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/activitypub/outbox/outbox.go b/activitypub/outbox/outbox.go
index 1ca84722a..53369a7af 100644
--- a/activitypub/outbox/outbox.go
+++ b/activitypub/outbox/outbox.go
@@ -194,7 +194,10 @@ func SendToFollowers(payload []byte) error {
// UpdateFollowersWithAccountUpdates will send an update to all followers alerting of a profile update.
func UpdateFollowersWithAccountUpdates() error {
- log.Println("Updating followers with new actor details")
+ // Don't do anything if federation is disabled.
+ if !data.GetFederationEnabled() {
+ return nil
+ }
id := shortid.MustGenerate()
objectID := apmodels.MakeLocalIRIForResource(id)