Explorar el Código

Add statusnet_profile_url to the TwAPI.

tags/v0.9.9
Roger Braun hace 7 años
padre
commit
16f8406eb6
Se han modificado 2 ficheros con 6 adiciones y 3 borrados
  1. +2
    -1
      lib/pleroma/web/twitter_api/representers/user_representer.ex
  2. +4
    -2
      test/web/twitter_api/representers/user_representer_test.exs

+ 2
- 1
lib/pleroma/web/twitter_api/representers/user_representer.ex Ver fichero

@@ -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


+ 4
- 2
test/web/twitter_api/representers/user_representer_test.exs Ver fichero

@@ -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})


Cargando…
Cancelar
Guardar