diff options
author | Tusooa Zhu <tusooa@kazv.moe> | 2022-05-05 11:18:18 -0400 |
---|---|---|
committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-05-06 13:54:13 -0400 |
commit | 466568ae36fd247e635e5a1c4db2b5662eda1d02 (patch) | |
tree | 4ea8b6f95dc4de245f08c20bb245dc099c483236 /lib | |
parent | 826deb737588c75d9431d260eea826208100385c (diff) | |
download | pleroma-466568ae36fd247e635e5a1c4db2b5662eda1d02.tar.gz pleroma-466568ae36fd247e635e5a1c4db2b5662eda1d02.zip |
Lint
Ref: fix-local-public
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/activity/search.ex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pleroma/activity/search.ex b/lib/pleroma/activity/search.ex index b56d4a5aa..0b9b24aa4 100644 --- a/lib/pleroma/activity/search.ex +++ b/lib/pleroma/activity/search.ex @@ -58,7 +58,10 @@ defmodule Pleroma.Activity.Search do def maybe_restrict_blocked(query, _), do: query defp restrict_public(q, user) when not is_nil(user) do - intended_recipients = [Pleroma.Constants.as_public(), Pleroma.Web.ActivityPub.Utils.as_local_public()] + intended_recipients = [ + Pleroma.Constants.as_public(), + Pleroma.Web.ActivityPub.Utils.as_local_public() + ] from([a, o] in q, where: fragment("?->>'type' = 'Create'", a.data), |