mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-29 19:25:23 +01:00
TwitterAPI: Fix mentions.
This commit is contained in:
parent
95f7e7e2d5
commit
fd95075e32
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user