CommonAPI: Change public->private implicit addressing.
This will not add the OP to the `to` field anymore when going from public to private.
This commit is contained in:
parent
94ba5a7802
commit
eb5f428565
3 changed files with 38 additions and 3 deletions
|
|
@ -102,7 +102,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|
|||
end
|
||||
|
||||
def get_to_and_cc(_user, mentioned_users, inReplyTo, "direct", _) do
|
||||
if inReplyTo do
|
||||
# If the OP is a DM already, add the implicit actor.
|
||||
if inReplyTo && Visibility.is_direct?(inReplyTo) do
|
||||
{Enum.uniq([inReplyTo.data["actor"] | mentioned_users]), []}
|
||||
else
|
||||
{mentioned_users, []}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue