Commit d8d99fd4 authored by lain's avatar lain

Activity.Queries: Use correct actor restriction.

parent 644195e3
......@@ -24,10 +24,7 @@ def by_ap_id(query \\ Activity, ap_id) do
@spec by_actor(query, String.t()) :: query
def by_actor(query \\ Activity, actor) do
activity in query,
where: fragment("(?)->>'actor' = ?",, ^actor)
from(a in query, where: == ^actor)
@spec by_author(query, User.t()) :: query
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment