diff options
author | lain <lain@soykaf.club> | 2018-02-18 15:20:36 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-02-18 15:20:36 +0100 |
commit | c974f6544f6315a49e51632c862f1e66b750ffff (patch) | |
tree | 48a4c88caa6c67899797deda1b1500548c012430 /lib/pleroma/web/common_api/utils.ex | |
parent | 44586f2967cf035f47cb63d9c74f0bb4c9b3ddb8 (diff) | |
download | pleroma-c974f6544f6315a49e51632c862f1e66b750ffff.tar.gz |
Show users their own posts in timeline.
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index ea95c134c..75c63e5f4 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -27,7 +27,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do def to_for_user_and_mentions(user, mentions, inReplyTo, "public") do to = ["https://www.w3.org/ns/activitystreams#Public"] - mentioned_users = Enum.map(mentions, fn ({_, %{ap_id: ap_id}}) -> ap_id end) ++ [user.ap_id] + mentioned_users = Enum.map(mentions, fn ({_, %{ap_id: ap_id}}) -> ap_id end) cc = [user.follower_address | mentioned_users] if inReplyTo do {to, Enum.uniq([inReplyTo.data["actor"] | cc])} @@ -47,7 +47,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do end def to_for_user_and_mentions(user, mentions, inReplyTo, "direct") do - mentioned_users = Enum.map(mentions, fn ({_, %{ap_id: ap_id}}) -> ap_id end) ++ [user.ap_id] + mentioned_users = Enum.map(mentions, fn ({_, %{ap_id: ap_id}}) -> ap_id end) if inReplyTo do {Enum.uniq([inReplyTo.data["actor"] | mentioned_users]), []} else |