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
This commit is contained in:
@ -23,6 +23,10 @@ class PollVote < ApplicationRecord
|
||||
|
||||
delegate :local?, to: :account
|
||||
|
||||
def object_type
|
||||
:vote
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def increment_counter_cache
|
||||
|
Reference in New Issue
Block a user