diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-05 03:51:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 03:51:18 +0100 |
commit | a198add83bb527c32fa0e01404338562b157da99 (patch) | |
tree | c5a507a1e40092b89fe0c8ab6ffe36fa126628f1 /app/models | |
parent | 0a39c81dd87242feb84da68b8907c3e45620eadf (diff) |
Fix various issues in polls (#10165)
* Fix ActivityPub poll results being serialized even with hide_totals * Fix poll refresh button having a different font size * Display poll in OpenGraph description * Fix NoMethodError when serializing votes Regression from #10158 * Fix polls on public pages being broken for non-logged-in users * Do not show time remaining if poll has no expiration date
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/poll_vote.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/poll_vote.rb b/app/models/poll_vote.rb index aec678968..9ad66bbf8 100644 --- a/app/models/poll_vote.rb +++ b/app/models/poll_vote.rb @@ -23,6 +23,10 @@ class PollVote < ApplicationRecord delegate :local?, to: :account + def object_type + :vote + end + private def increment_counter_cache |