Add statusnet_profile_url to the TwAPI.
authorRoger Braun <roger@rogerbraun.net>
Tue, 2 May 2017 12:36:04 +0000 (14:36 +0200)
committerRoger Braun <roger@rogerbraun.net>
Tue, 2 May 2017 12:36:04 +0000 (14:36 +0200)
lib/pleroma/web/twitter_api/representers/user_representer.ex
test/web/twitter_api/representers/user_representer_test.exs

index 29c7451f461f5d47687ed05d17b1dfd5cd4ecab4..4930774138d8861f287eb48ede8a737328144001 100644 (file)
@@ -28,7 +28,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.UserRepresenter do
       "profile_image_url_https" => image,
       "profile_image_url_profile_size" => image,
       "profile_image_url_original" => image,
-      "rights" => %{}
+      "rights" => %{},
+      "statusnet_profile_url" => user.ap_id
     }
 
     map
index 1e92c519046391e6dffbaed50e9187a90e1f3a99..77f0659483f3ba1e851727d9d5bd3f82c760c0ab 100644 (file)
@@ -48,7 +48,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.UserRepresenterTest do
       "profile_image_url_profile_size" => image,
       "profile_image_url_original" => image,
       "following" => false,
-      "rights" => %{}
+      "rights" => %{},
+      "statusnet_profile_url" => user.ap_id
     }
 
     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_original" => image,
       "following" => true,
-      "rights" => %{}
+      "rights" => %{},
+      "statusnet_profile_url" => user.ap_id
     }
 
     assert represented == UserRepresenter.to_map(user, %{for: follower})