This file is indexed.

/usr/lib/ruby/vendor_ruby/diaspora_federation/validators/like_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
module DiasporaFederation
  module Validators
    # This validates a {Entities::Like}.
    class LikeValidator < Validation::Validator
      include Validation

      include RelayableValidator

      rule :parent_type, [:not_empty, regular_expression: {regex: /\A(Post|Comment)\z/}]
    end
  end
end