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