Class: AccountDeletion

Inherits:
ApplicationRecord show all
Includes:
Diaspora::Federated::Base
Defined in:
app/models/account_deletion.rb

Overview

Copyright © 2010-2011, Diaspora Inc. This file is

licensed under the Affero General Public License version 3 or later.  See
the COPYRIGHT file.

Instance Method Summary collapse

Methods included from Diaspora::Federated::Base

#object_to_receive

Instance Method Details

#perform!Object


21
22
23
24
# File 'app/models/account_deletion.rb', line 21

def perform!
  Diaspora::Federation::Dispatcher.build(person.owner, self).dispatch if person.local?
  AccountDeleter.new(person).perform!
end

#public?Boolean

Returns:

  • (Boolean)

30
31
32
# File 'app/models/account_deletion.rb', line 30

def public?
  true
end

#queue_delete_accountObject


17
18
19
# File 'app/models/account_deletion.rb', line 17

def 
  Workers::DeleteAccount.perform_async(id)
end

#subscribersObject


26
27
28
# File 'app/models/account_deletion.rb', line 26

def subscribers
  person.owner.contact_people.remote | Person.who_have_reshared_a_users_posts(person.owner).remote
end