Class: Postzord::Receiver

Inherits:
Object
  • Object
show all
Defined in:
lib/postzord/receiver.rb

Direct Known Subclasses

LocalBatch, Private, Public

Defined Under Namespace

Classes: LocalBatch, Private, Public

Instance Method Summary collapse

Instance Method Details

#author_does_not_match_xml_author?Boolean


15
16
17
18
19
20
# File 'lib/postzord/receiver.rb', line 15

def author_does_not_match_xml_author?
  if (@author.diaspora_handle != xml_author)
    FEDERATION_LOGGER.info("event=receive status=abort reason='author in xml does not match retrieved person' payload_type=#{@object.class} sender=#{@author.diaspora_handle}")
    return true
  end
end

#perform!Object


11
12
13
# File 'lib/postzord/receiver.rb', line 11

def perform!
  self.receive!
end