mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 02:05:12 +00:00
Credo
This commit is contained in:
parent
3f3d64acbf
commit
2cb5c16723
|
@ -25,7 +25,7 @@ defmodule Pleroma.Web.MastodonAPI.PollView do
|
||||||
}
|
}
|
||||||
|
|
||||||
if params[:for] 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)
|
{voted, own_votes} = voted_and_own_votes(params, options)
|
||||||
Map.merge(poll, %{voted: voted, own_votes: own_votes})
|
Map.merge(poll, %{voted: voted, own_votes: own_votes})
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue