/usr/lib/ruby/vendor_ruby/diaspora_federation/validators/account_deletion_validator.rb is in ruby-diaspora-federation 0.1.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | module DiasporaFederation
module Validators
# This validates a {Entities::AccountDeletion}.
class AccountDeletionValidator < Validation::Validator
include Validation
rule :author, %i(not_empty diaspora_id)
end
end
end
|