/usr/lib/ruby/vendor_ruby/diaspora_federation/validators/retraction_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 11 12 13 14 | module DiasporaFederation
module Validators
# This validates a {Entities::Retraction}.
class RetractionValidator < Validation::Validator
include Validation
rule :author, %i(not_empty diaspora_id)
rule :target_guid, :guid
rule :target_type, :not_empty
rule :target, :not_nil
end
end
end
|