Class: Workers::FetchWebfinger

Inherits:
Base
  • Object
show all
Defined in:
app/workers/fetch_webfinger.rb

Instance Method Summary collapse

Methods inherited from Base

#suppress_annoying_errors

Instance Method Details

#perform(account) ⇒ Object


9
10
11
12
13
14
# File 'app/workers/fetch_webfinger.rb', line 9

def perform()
  person = Webfinger.new().fetch

  # also, schedule to fetch a few public posts from that person
  Workers::FetchPublicPosts.perform_async(person.diaspora_handle) unless person.nil?
end