mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
8 lines
182 B
Ruby
8 lines
182 B
Ruby
# frozen_string_literal: true
|
|
|
|
class QuotePolicy < ApplicationPolicy
|
|
def revoke?
|
|
record.quoted_account_id.present? && record.quoted_account_id == current_account&.id
|
|
end
|
|
end
|