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