This file is indexed.

/usr/lib/ruby/vendor_ruby/diaspora_federation/entities/contact.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
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module DiasporaFederation
  module Entities
    # This entity represents a contact with another person. A user issues it
    # when they start sharing/following with another user.
    #
    # @see Validators::ContactValidator
    class Contact < Entity
      # @!attribute [r] author
      #   The diaspora* ID of the person who shares their profile
      #   @see Person#author
      #   @return [String] sender ID
      property :author

      # @!attribute [r] recipient
      #   The diaspora* ID of the person who will be shared with
      #   @see Validation::Rule::DiasporaId
      #   @return [String] recipient ID
      property :recipient

      # @!attribute [r] following
      #   @return [Boolean] if the author is following the person
      property :following, default: true

      # @!attribute [r] sharing
      #   @return [Boolean] if the author is sharing with the person
      property :sharing, default: true

      # @return [String] string representation of this object
      def to_s
        "Contact:#{author}:#{recipient}"
      end
    end
  end
end