mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-19 03:35:02 +00:00
Fix specs.
This commit is contained in:
parent
dea29d707c
commit
5a371892a0
2 changed files with 3 additions and 1 deletions
|
@ -139,6 +139,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub 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 @@ defmodule Pleroma.Factory do
|
|||
|
||||
%Pleroma.Activity{
|
||||
data: data,
|
||||
actor: data["actor"]
|
||||
actor: data["actor"],
|
||||
recipients: data["to"]
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue