2
0

Add notification policies and notification requests (#29366)

This commit is contained in:
Eugen Rochko
2024-03-07 15:53:37 +01:00
committed by GitHub
parent 653ce43abe
commit 50b17f7e10
104 changed files with 1096 additions and 247 deletions

View File

@@ -0,0 +1,8 @@
# frozen_string_literal: true
class AcceptNotificationRequestService < BaseService
def call(request)
NotificationPermission.create!(account: request.account, from_account: request.from_account)
UnfilterNotificationsWorker.perform_async(request.id)
end
end