Class: ArchiveImporter::OwnEntityImporter

Inherits:
EntityImporter show all
Defined in:
lib/archive_importer/own_entity_importer.rb

Direct Known Subclasses

OwnRelayableImporter, PostImporter

Instance Attribute Summary

Attributes inherited from EntityImporter

#json, #user

Instance Method Summary collapse

Methods inherited from EntityImporter

#entity, #initialize

Constructor Details

This class inherits a constructor from ArchiveImporter::EntityImporter

Instance Method Details

#importObject


5
6
7
8
9
10
11
12
# File 'lib/archive_importer/own_entity_importer.rb', line 5

def import
  substitute_author
  super
rescue Diaspora::Federation::InvalidAuthor
  return if real_author == old_author_id

  logger.warn "#{self.class}: attempt to import an entity with guid \"#{guid}\" which belongs to #{real_author}"
end