Browse Source

MastoAPI: fake out 'application' property.

tags/v0.9.9
Roger Braun 6 years ago
parent
commit
a8701282d4
2 changed files with 8 additions and 2 deletions
  1. +4
    -1
      lib/pleroma/web/mastodon_api/views/status_view.ex
  2. +4
    -1
      test/web/mastodon_api/status_view_test.exs

+ 4
- 1
lib/pleroma/web/mastodon_api/views/status_view.ex View 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


+ 4
- 1
test/web/mastodon_api/status_view_test.exs View File

@@ -36,7 +36,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
media_attachments: [],
mentions: [],
tags: [],
application: nil,
application: %{
name: "Web",
website: nil
},
language: nil
}



Loading…
Cancel
Save