aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkPherox <admin@mail.kr-kp.com>2020-05-25 23:21:43 +0900
committerkPherox <admin@mail.kr-kp.com>2020-05-30 00:31:18 +0900
commitde0e2628391ca039ac0d029c251136d53b6f8e63 (patch)
tree3575ce1dd40cd61a5f8a00a6aa669385dc319bc8
parent984897810956c723a48f49bf8e097471527ebd38 (diff)
downloadpleroma-de0e2628391ca039ac0d029c251136d53b6f8e63.tar.gz
Fix argument error in streamer
`Repo.exists` can't use `nil` as it is unsafe. Use parent object instead of activity because currently Announce activity's context is null.
-rw-r--r--lib/pleroma/web/streamer/streamer.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/streamer/streamer.ex b/lib/pleroma/web/streamer/streamer.ex
index 49a400df7..0cf41189b 100644
--- a/lib/pleroma/web/streamer/streamer.ex
+++ b/lib/pleroma/web/streamer/streamer.ex
@@ -136,7 +136,7 @@ defmodule Pleroma.Web.Streamer do
false <- Pleroma.Web.ActivityPub.MRF.subdomain_match?(domain_blocks, item_host),
false <- Pleroma.Web.ActivityPub.MRF.subdomain_match?(domain_blocks, parent_host),
true <- thread_containment(item, user),
- false <- CommonAPI.thread_muted?(user, item) do
+ false <- CommonAPI.thread_muted?(user, parent) do
false
else
_ -> true