MastoAPI and OAuth: allow login with either email or username.
[akkoma] / lib / pleroma / web / twitter_api / twitter_api.ex
index 027b97154ed542c5421e837a6628cbffd167d9e1..c12cd7f8aa14a8912e89b69e04609a9e31897b38 100644 (file)
@@ -193,6 +193,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
       from(
         a in Activity,
         where: fragment("?->>'type' = 'Create'", a.data),
+        where: "https://www.w3.org/ns/activitystreams#Public" in a.recipients,
         where:
           fragment(
             "to_tsvector('english', ?->'object'->>'content') @@ plainto_tsquery('english', ?)",