Add current user to mentioned
This commit is contained in:
parent
e116e55cab
commit
651a1d64b5
6 changed files with 14 additions and 9 deletions
|
|
@ -118,9 +118,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do
|
|||
expected = %{
|
||||
"activity_type" => "post",
|
||||
"attachments" => [],
|
||||
"attentions" => [
|
||||
UserView.render("show.json", %{user: other_user})
|
||||
],
|
||||
"attentions" => Enum.map([other_user, user], fn u -> UserView.render("show.json", %{user: u}) end),
|
||||
"created_at" => activity.data["object"]["published"] |> Utils.date_to_asctime(),
|
||||
"external_url" => activity.data["object"]["id"],
|
||||
"fave_num" => 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue