logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 2cb5c16723b7e65e6e1bfae6bf8319f62d667def
parent 3f3d64acbfe0f8219911cb053e7fdab25137a23a
Author: Mark Felder <feld@feld.me>
Date:   Mon, 25 Jan 2021 18:25:53 -0600

Credo

Diffstat:

Mlib/pleroma/web/mastodon_api/views/poll_view.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/web/mastodon_api/views/poll_view.ex b/lib/pleroma/web/mastodon_api/views/poll_view.ex @@ -25,7 +25,7 @@ defmodule Pleroma.Web.MastodonAPI.PollView do } if params[:for] do - # if a user is not authenticated Mastodon doesn't include `voted` & `own_votes` keys in response + # when unauthenticated Mastodon doesn't include `voted` & `own_votes` keys in response {voted, own_votes} = voted_and_own_votes(params, options) Map.merge(poll, %{voted: voted, own_votes: own_votes}) else