about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-09-30 16:07:42 -0500
committermultiple creatures <dev@multiple-creature.party>2019-09-30 16:07:42 -0500
commit80c51b1ec560299a01848308c32fb4e3c8d647d9 (patch)
treeb5a813ce900caa42c34a4fb33b855c7c9a36019d /app
parente0103d164930cfdc088ef99761b3eccf3a6a7825 (diff)
community-visible (not community-only!) posts are also distributable - notify the local author when they get boosted
Diffstat (limited to 'app')
-rw-r--r--app/lib/activitypub/activity/announce.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/announce.rb b/app/lib/activitypub/activity/announce.rb
index 245126123..ec0ed2c98 100644
--- a/app/lib/activitypub/activity/announce.rb
+++ b/app/lib/activitypub/activity/announce.rb
@@ -42,7 +42,7 @@ class ActivityPub::Activity::Announce < ActivityPub::Activity
   end
 
   def announceable?(status)
-    status.account_id == @account.id || status.public_visibility? || status.unlisted_visibility?
+    status.account_id == @account.id || status.distributable?
   end
 
   def related_to_local_activity?