Add statusnet_profile_url to the TwAPI.

This commit is contained in:
Roger Braun 2017-05-02 14:36:04 +02:00
parent 32a95d73da
commit 16f8406eb6
2 changed files with 6 additions and 3 deletions

View File

@ -28,7 +28,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.UserRepresenter do
"profile_image_url_https" => image, "profile_image_url_https" => image,
"profile_image_url_profile_size" => image, "profile_image_url_profile_size" => image,
"profile_image_url_original" => image, "profile_image_url_original" => image,
"rights" => %{} "rights" => %{},
"statusnet_profile_url" => user.ap_id
} }
map map

View File

@ -48,7 +48,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.UserRepresenterTest do
"profile_image_url_profile_size" => image, "profile_image_url_profile_size" => image,
"profile_image_url_original" => image, "profile_image_url_original" => image,
"following" => false, "following" => false,
"rights" => %{} "rights" => %{},
"statusnet_profile_url" => user.ap_id
} }
assert represented == UserRepresenter.to_map(user) assert represented == UserRepresenter.to_map(user)
@ -72,7 +73,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.UserRepresenterTest do
"profile_image_url_profile_size" => image, "profile_image_url_profile_size" => image,
"profile_image_url_original" => image, "profile_image_url_original" => image,
"following" => true, "following" => true,
"rights" => %{} "rights" => %{},
"statusnet_profile_url" => user.ap_id
} }
assert represented == UserRepresenter.to_map(user, %{for: follower}) assert represented == UserRepresenter.to_map(user, %{for: follower})