Add with_muted param.

This commit is contained in:
lain 2019-02-27 16:37:42 +01:00
commit c4235f96bd
3 changed files with 13 additions and 0 deletions

View file

@ -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