Fix returned visibility of announces in MastodonAPI
authorThibaut Girka <thib@sitedethib.com>
Tue, 1 Oct 2019 17:28:51 +0000 (19:28 +0200)
committerThibaut Girka <thib@sitedethib.com>
Tue, 1 Oct 2019 18:38:29 +0000 (20:38 +0200)
lib/pleroma/web/mastodon_api/views/status_view.ex

index 3262427eca9df144419a0f00baeda764cfb16fe6..9b8dd30867abfb237dc21cc1bcfcc39574824f8a 100644 (file)
@@ -125,7 +125,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
       pinned: pinned?(activity, user),
       sensitive: false,
       spoiler_text: "",
-      visibility: "public",
+      visibility: get_visibility(activity),
       media_attachments: reblogged[:media_attachments] || [],
       mentions: mentions,
       tags: reblogged[:tags] || [],