Fix returned visibility of announces in MastodonAPI

This commit is contained in:
Thibaut Girka 2019-10-01 19:28:51 +02:00
parent 7d5a9f3f6d
commit 43e3db0951

View 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] || [],