2017-07-19 00:39:47 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-07-19 09:37:26 +10:00
|
|
|
class OStatus::Activity::Remote < OStatus::Activity::Base
|
2017-07-19 00:39:47 +10:00
|
|
|
def perform
|
2017-08-18 09:03:18 +10:00
|
|
|
if activitypub_uri?
|
|
|
|
find_status(activitypub_uri) || FetchRemoteStatusService.new.call(url)
|
|
|
|
else
|
|
|
|
find_status(id) || FetchRemoteStatusService.new.call(url)
|
|
|
|
end
|
2017-07-19 00:39:47 +10:00
|
|
|
end
|
|
|
|
end
|