diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-06-18 05:11:05 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-06-18 05:27:09 +0000 |
commit | 6f384d35ddc4682e3b845b0224ca620fbdd93785 (patch) | |
tree | c4d69cdff48ae748a15e7b62d925966130edd25d /lib | |
parent | 591c82620eeb74a012d4614b9f16db74a7fd84f9 (diff) | |
download | pleroma-6f384d35ddc4682e3b845b0224ca620fbdd93785.tar.gz |
ostatus: we need to include the original author of a message as a mention
this is due to the use of activity.recipients which may not necessarily contain the original
author if the actors are not following each other.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/ostatus/activity_representer.ex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pleroma/web/ostatus/activity_representer.ex b/lib/pleroma/web/ostatus/activity_representer.ex index 4179d86c9..4c4a0c233 100644 --- a/lib/pleroma/web/ostatus/activity_representer.ex +++ b/lib/pleroma/web/ostatus/activity_representer.ex @@ -184,7 +184,10 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do retweeted_xml = to_simple_form(retweeted_activity, retweeted_user, true) - mentions = activity.recipients |> get_mentions + mentions = + ([retweeted_user.ap_id] ++ activity.recipients) + |> Enum.uniq() + |> get_mentions() [ {:"activity:object-type", ['http://activitystrea.ms/schema/1.0/activity']}, |