Removed unused ostatus, activitypub actions from service code

• Removed:
- unused ostatus, activitypub actions from service code
This commit is contained in:
mgabdev
2020-11-09 12:25:14 -06:00
parent bfd1e1ef9d
commit 4100f3dd63
14 changed files with 0 additions and 264 deletions

View File

@@ -18,10 +18,6 @@ class ProcessQuoteService < BaseService
if quoted_status.account.local?
LocalNotificationWorker.perform_async(quoted_status.account_id, status.id, status.class.name)
elsif quoted_status.account.ostatus?
NotificationWorker.perform_async(stream_entry_to_xml(status.stream_entry), status.account_id, quoted_status.account_id)
elsif quoted_status.account.activitypub? && !quoted_status.account.following?(status.account)
ActivityPub::DeliveryWorker.perform_async(build_json(status), status.account_id, quoted_status.account.inbox_url)
end
end
@@ -31,12 +27,5 @@ class ProcessQuoteService < BaseService
PotentialFriendshipTracker.record(status.account_id, status.quote.account_id, :reblog)
end
def build_json(status)
Oj.dump(ActivityPub::LinkedDataSignature.new(ActiveModelSerializers::SerializableResource.new(
status,
serializer: ActivityPub::ActivitySerializer,
adapter: ActivityPub::Adapter
).as_json).sign!(status.account))
end
end