projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95f7e7e
)
TwitterAPI: Fix mentions.
author
lain
<lain@soykaf.club>
Tue, 20 Feb 2018 18:50:34 +0000
(19:50 +0100)
committer
lain
<lain@soykaf.club>
Tue, 20 Feb 2018 18:50:34 +0000
(19:50 +0100)
lib/pleroma/web/twitter_api/representers/activity_representer.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/twitter_api/representers/activity_representer.ex
b/lib/pleroma/web/twitter_api/representers/activity_representer.ex
index 98be18c9895cdbbbd68bb076a2220b585c27d5c9..b0dfeaf39066c69b588e90d22162813b7f08082e 100644
(file)
--- a/
lib/pleroma/web/twitter_api/representers/activity_representer.ex
+++ b/
lib/pleroma/web/twitter_api/representers/activity_representer.ex
@@
-126,7
+126,7
@@
defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
mentions = opts[:mentioned] || []
- attentions = activity.
data["to"]
+ attentions = activity.
recipients
|> Enum.map(fn (ap_id) -> Enum.find(mentions, fn(user) -> ap_id == user.ap_id end) end)
|> Enum.filter(&(&1))
|> Enum.map(fn (user) -> UserView.render("show.json", %{user: user, for: opts[:for]}) end)