1
0
Fork 0
mirror of https://git.youjo.love/youjo/youjo-be.git synced 2025-03-22 18:57:47 +01:00

Fix for following type change.

This commit is contained in:
lain 2018-02-21 22:27:16 +01:00
parent 4816b09fa7
commit 8895088029

View file

@ -323,7 +323,7 @@ defmodule Pleroma.User do
def get_recipients_from_activity(%Activity{recipients: to}) do
query = from u in User,
where: u.ap_id in ^to,
or_where: fragment("? \\\?| ?", u.following, ^to)
or_where: fragment("? && ?", u.following, ^to)
query = from u in query,
where: u.local == true