diff options
author | lain <lain@soykaf.club> | 2019-02-27 16:37:42 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-02-27 16:37:42 +0100 |
commit | c4235f96bde49def1fb6927ba79a49a0f75cd60a (patch) | |
tree | c906002a67b324e0d21eec47c5a9bc526175423a /lib | |
parent | 14bc6bd40f0ea7879cd75444939669ee6e6ac85c (diff) | |
download | pleroma-c4235f96bde49def1fb6927ba79a49a0f75cd60a.tar.gz |
Add `with_muted` param.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index cc255cc9e..52404c7e5 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -602,6 +602,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do defp restrict_reblogs(query, _), do: query + defp restrict_muted(query, %{"with_muted" => val}) when val in [true, "true", "1"], do: query + defp restrict_muted(query, %{"muting_user" => %User{info: info}}) do mutes = info.mutes |