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 end
defp restrict_tag(query, _), do: query defp restrict_tag(query, _), do: query
defp restrict_recipients(query, []), do: query
defp restrict_recipients(query, recipients) do defp restrict_recipients(query, recipients) do
from activity in query, from activity in query,
where: fragment("? && ?", ^recipients, activity.recipients) where: fragment("? && ?", ^recipients, activity.recipients)

View File

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