Add ForceMentionsInContentPolicy

Even though latest PleromaFE supports displaying these properly, mobile
apps still exist, so I think we should offer a workaround to those who
want it.
This commit is contained in:
rinpatch 2022-01-19 19:40:50 +03:00
commit a02cfd7f52
7 changed files with 221 additions and 20 deletions

View file

@ -1055,6 +1055,10 @@ defmodule Pleroma.User do
Repo.get_by(User, ap_id: ap_id)
end
def get_by_uri(uri) do
Repo.get_by(User, uri: uri)
end
def get_all_by_ap_id(ap_ids) do
from(u in __MODULE__,
where: u.ap_id in ^ap_ids