commit: a8701282d422b8108b4998de4a9bea6cebf199ea
parent: 6258c6b6b3f10b48c5ada457ed7042f7c97c1ffc
Author: Roger Braun <roger@rogerbraun.net>
Date: Thu, 14 Sep 2017 09:14:08 +0200
MastoAPI: fake out 'application' property.
Diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -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
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
@@ -36,7 +36,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
media_attachments: [],
mentions: [],
tags: [],
- application: nil,
+ application: %{
+ name: "Web",
+ website: nil
+ },
language: nil
}