MastoAPI: Add max_toot_chars.
[akkoma] / lib / pleroma / user.ex
index 59d4fb839f4254eba5c039187871555b547e5d12..f80c0ae338f54f3ed4714f6d877bcb2846a7edfa 100644 (file)
@@ -286,12 +286,12 @@ defmodule Pleroma.User do
 
   def get_recipients_from_activity(%Activity{data: %{"to" => to}}) do
     query = from u in User,
-      where: u.local == true
-
-    query = from u in query,
       where: u.ap_id in ^to,
       or_where: fragment("? \\\?| ?", u.following, ^to)
 
+    query = from u in query,
+      where: u.local == true
+
     Repo.all(query)
   end