Add short_description to mastodon v1 instance api response. #821
2 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ def render("show.json", _) do
|
||||||
uri: Pleroma.Web.Endpoint.url(),
|
uri: Pleroma.Web.Endpoint.url(),
|
||||||
title: Keyword.get(instance, :name),
|
title: Keyword.get(instance, :name),
|
||||||
description: Keyword.get(instance, :description),
|
description: Keyword.get(instance, :description),
|
||||||
|
short_description: Keyword.get(instance, :description),
|
||||||
version: "#{@mastodon_api_level} (compatible; #{Pleroma.Application.named_version()})",
|
version: "#{@mastodon_api_level} (compatible; #{Pleroma.Application.named_version()})",
|
||||||
email: Keyword.get(instance, :email),
|
email: Keyword.get(instance, :email),
|
||||||
urls: %{
|
urls: %{
|
||||||
|
|
|
@ -23,6 +23,7 @@ test "get instance information", %{conn: conn} do
|
||||||
"uri" => _,
|
"uri" => _,
|
||||||
"title" => _,
|
"title" => _,
|
||||||
"description" => _,
|
"description" => _,
|
||||||
|
"short_description" => _,
|
||||||
"version" => _,
|
"version" => _,
|
||||||
"email" => from_config_email,
|
"email" => from_config_email,
|
||||||
"urls" => %{
|
"urls" => %{
|
||||||
|
|
Loading…
Reference in a new issue