diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-07-18 10:48:37 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-07-18 10:48:37 -0500 |
commit | f9eeae3b77e0403539cf7420970fbe728072ef74 (patch) | |
tree | 1f3e9e1ce87c889951295c4004be25b8f9a279fd /lib | |
parent | 0114754db2d9dde25b31729644f898f20121de27 (diff) | |
download | pleroma-f9eeae3b77e0403539cf7420970fbe728072ef74.tar.gz |
Poll notification: notify for your own poll even when block_from_strangers is set
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/notification.ex | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 43a0e8f49..9c7415f29 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -635,7 +635,12 @@ defmodule Pleroma.Notification do ) do actor = activity.data["actor"] follower = User.get_cached_by_ap_id(actor) - !User.following?(follower, user) + + cond do + user.ap_id == actor -> false + !User.following?(follower, user) -> true + true -> false + end end # To do: consider defining recency in hours and checking FollowingRelationship with a single SQL |