logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

update.rb (360B)


  1. # frozen_string_literal: true
  2. class ActivityPub::Activity::Update < ActivityPub::Activity
  3. def perform
  4. case @object['type']
  5. when 'Person'
  6. update_account
  7. end
  8. end
  9. private
  10. def update_account
  11. return if @account.uri != object_uri
  12. ActivityPub::ProcessAccountService.new.call(@account.username, @account.domain, @object)
  13. end
  14. end