Fix for following type change.
authorlain <lain@soykaf.club>
Wed, 21 Feb 2018 21:27:16 +0000 (22:27 +0100)
committerlain <lain@soykaf.club>
Wed, 21 Feb 2018 21:27:16 +0000 (22:27 +0100)
lib/pleroma/user.ex

index 1d9f40ee0852970be0d6cbd6a1ecfea4d44bac67..f97dbb387020fb6690e3d57a38a01418c70e1e19 100644 (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