From: Roger Braun Date: Thu, 14 Sep 2017 07:14:08 +0000 (+0200) Subject: MastoAPI: fake out 'application' property. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a8701282d422b8108b4998de4a9bea6cebf199ea;p=akkoma MastoAPI: fake out 'application' property. --- diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 7c8af994b..e561b32fe 100644 --- 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 index 3941e3019..870a205f1 100644 --- 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 }