forked from AkkomaGang/akkoma
Fix specs.
This commit is contained in:
parent
dea29d707c
commit
5a371892a0
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -52,7 +52,8 @@ def note_activity_factory do
|
|||
|
||||
%Pleroma.Activity{
|
||||
data: data,
|
||||
actor: data["actor"]
|
||||
actor: data["actor"],
|
||||
recipients: data["to"]
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue