diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-01-27 09:37:11 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-01-28 05:53:17 +0000 |
commit | 132d815f1f749cec4b54083fc46046c45e7d0d04 (patch) | |
tree | d32e52587c71d2d9f68d94450a0d831144a29db5 /test | |
parent | 6db792124ba5269a6d134e2778779261f44bd635 (diff) | |
download | pleroma-132d815f1f749cec4b54083fc46046c45e7d0d04.tar.gz pleroma-132d815f1f749cec4b54083fc46046c45e7d0d04.zip |
mastodon api: factor out status card fetching, move status card rendering to statusview, add opengraph extended data
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index b8f901e6c..02a0eb228 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -1663,9 +1663,19 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do assert response == %{ "image" => "http://ia.media-imdb.com/images/rock.jpg", "provider_name" => "www.imdb.com", + "provider_url" => "http://www.imdb.com", "title" => "The Rock", "type" => "link", - "url" => "http://www.imdb.com/title/tt0117500/" + "url" => "http://www.imdb.com/title/tt0117500/", + "description" => nil, + "pleroma" => %{ + "opengraph" => %{ + "image" => "http://ia.media-imdb.com/images/rock.jpg", + "title" => "The Rock", + "type" => "video.movie", + "url" => "http://www.imdb.com/title/tt0117500/" + } + } } end end |