projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f3d64a
)
Credo
author
Mark Felder
<feld@feld.me>
Tue, 26 Jan 2021 00:25:53 +0000
(18:25 -0600)
committer
Mark Felder
<feld@feld.me>
Tue, 26 Jan 2021 00:25:53 +0000
(18:25 -0600)
lib/pleroma/web/mastodon_api/views/poll_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/mastodon_api/views/poll_view.ex
b/lib/pleroma/web/mastodon_api/views/poll_view.ex
index de536c8fb6959a6c5f31abdeaf2a16210f4d88f6..71bc8b949229f3f0bd8c3f6a66a7af8b9c613b21 100644
(file)
--- 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 un
authenticated 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