This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-07-18 16:39:47 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-07-19 01:37:26 +02:00
|
|
|
class OStatus::Activity::Remote < OStatus::Activity::Base
|
2017-07-18 16:39:47 +02:00
|
|
|
def perform
|
2017-08-18 01:03:18 +02:00
|
|
|
if activitypub_uri?
|
|
|
|
find_status(activitypub_uri) || FetchRemoteStatusService.new.call(url)
|
|
|
|
else
|
|
|
|
find_status(id) || FetchRemoteStatusService.new.call(url)
|
|
|
|
end
|
2017-07-18 16:39:47 +02:00
|
|
|
end
|
|
|
|
end
|