1
0
mirror of https://github.com/glitch-soc/mastodon.git synced 2025-02-17 08:03:53 -05:00

8 lines
241 B
Ruby

# frozen_string_literal: true
class PollPolicy < ApplicationPolicy
def vote?
StatusPolicy.new(current_account, record.status).show? && !current_account.blocking?(record.account) && !record.account.blocking?(current_account)
end
end