logo

mastofe

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

remote.rb (295B)


  1. # frozen_string_literal: true
  2. class OStatus::Activity::Remote < OStatus::Activity::Base
  3. def perform
  4. if activitypub_uri?
  5. find_status(activitypub_uri) || FetchRemoteStatusService.new.call(url)
  6. else
  7. find_status(id) || FetchRemoteStatusService.new.call(url)
  8. end
  9. end
  10. end