Add notification policies and notification requests (#29366)
This commit is contained in:
8
app/services/accept_notification_request_service.rb
Normal file
8
app/services/accept_notification_request_service.rb
Normal 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
|
||||
Reference in New Issue
Block a user