about summary refs log tree commit diff
path: root/app/lib/ostatus/activity/remote.rb
blob: 5b204b6d8f0f022278d4f18cea7a36b546be3d94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class OStatus::Activity::Remote < OStatus::Activity::Base
  def perform
    if activitypub_uri?
      find_status(activitypub_uri) || FetchRemoteStatusService.new.call(url)
    else
      find_status(id) || FetchRemoteStatusService.new.call(url)
    end
  end
end