Fix specs.

This commit is contained in:
lain 2018-02-17 10:26:44 +01:00
parent dea29d707c
commit 5a371892a0
2 changed files with 3 additions and 1 deletions

View file

@ -139,6 +139,7 @@ defp restrict_tag(query, %{"tag" => tag}) do
end
defp restrict_tag(query, _), do: query
defp restrict_recipients(query, []), do: query
defp restrict_recipients(query, recipients) do
from activity in query,
where: fragment("? && ?", ^recipients, activity.recipients)

View file

@ -52,7 +52,8 @@ def note_activity_factory do
%Pleroma.Activity{
data: data,
actor: data["actor"]
actor: data["actor"],
recipients: data["to"]
}
end