MastoAPI: Fix reblog emojis.
authorRoger Braun <roger@rogerbraun.net>
Sat, 11 Nov 2017 10:18:05 +0000 (11:18 +0100)
committerRoger Braun <roger@rogerbraun.net>
Sat, 11 Nov 2017 10:18:05 +0000 (11:18 +0100)
lib/pleroma/web/mastodon_api/views/status_view.ex
test/web/mastodon_api/status_view_test.exs

index a0acdb0ac652f0e5dd0661a1284b2c8ccca90d29..d97b2acb4c502d712c475416893b9bc17e8c95ac 100644 (file)
@@ -46,7 +46,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
         website: nil
       },
       language: nil,
-      emoji: []
+      emojis: []
     }
   end
 
index 69d86ea8235155d54ab5887378e025bde30b9cf7..601e551a9596218de1e33688b2dd2099ac0716e2 100644 (file)
@@ -103,5 +103,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
 
     assert represented[:id] == to_string(reblog.id)
     assert represented[:reblog][:id] == to_string(activity.id)
+    assert represented[:emojis] == []
   end
 end