MastoAPI: fake out 'application' property.
authorRoger Braun <roger@rogerbraun.net>
Thu, 14 Sep 2017 07:14:08 +0000 (09:14 +0200)
committerRoger Braun <roger@rogerbraun.net>
Thu, 14 Sep 2017 07:14:08 +0000 (09:14 +0200)
lib/pleroma/web/mastodon_api/views/status_view.ex
test/web/mastodon_api/status_view_test.exs

index 7c8af994b2a0d138b21414158e2a6dee4c13ac27..e561b32fe929f337ab33f071cf79ff8701c2fd34 100644 (file)
@@ -52,7 +52,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
       media_attachments: attachments,
       mentions: mentions,
       tags: [], # fix,
-      application: nil,
+      application: %{
+        name: "Web",
+        website: nil
+      },
       language: nil
     }
   end
index 3941e30197a5f7b30e3c15e1b8748cf8a78b16e9..870a205f110c5d30d663370aebcdb0fc52d0539b 100644 (file)
@@ -36,7 +36,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
       media_attachments: [],
       mentions: [],
       tags: [],
-      application: nil,
+      application: %{
+        name: "Web",
+        website: nil
+      },
       language: nil
     }