diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-05-08 20:12:36 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-05-08 20:12:36 +0200 |
commit | 1418d7274995ab62abedee0e55eae4fc3d041236 (patch) | |
tree | 330f3614c2f4e806698cb05e6a150866f11b35b2 /test | |
parent | 8f9c43343e239b3f3fd28651ca508f3ee1e4562c (diff) | |
download | pleroma-1418d7274995ab62abedee0e55eae4fc3d041236.tar.gz |
Add class=attachment to attachment links.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/twitter_api/twitter_api_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index 9a7dc48da..fd309e5ed 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -33,7 +33,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do { :ok, activity = %Activity{} } = TwitterAPI.create_status(user, input) - assert get_in(activity.data, ["object", "content"]) == "Hello again, <a href='shp'>@shp</a>.<br>This is on another line.<br><a href='http://example.org/image.jpg'>http://example.org/image.jpg</a>" + assert get_in(activity.data, ["object", "content"]) == "Hello again, <a href='shp'>@shp</a>.<br>This is on another line.<br><a href='http://example.org/image.jpg' class='attachment'>http://example.org/image.jpg</a>" assert get_in(activity.data, ["object", "type"]) == "Note" assert get_in(activity.data, ["object", "actor"]) == user.ap_id assert get_in(activity.data, ["actor"]) == user.ap_id |