Module: ActivityPub::Rails::ObjectConcern

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/activitypub/rails/object_concern.rb

Instance Method Summary collapse

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/models/concerns/activitypub/rails/object_concern.rb', line 15

def local?
  domain.nil?
end

#remote?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/models/concerns/activitypub/rails/object_concern.rb', line 19

def remote?
  !local?
end