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:
parent
70fbd1f09e
commit
a02cfd7f52
7 changed files with 221 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue