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