mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Added API for single notification dismissal (#2251)
* Added API backend for notification dismissal * Added render statement * Changed statement
This commit is contained in:
@@ -30,6 +30,11 @@ class Api::V1::NotificationsController < ApiController
|
||||
render_empty
|
||||
end
|
||||
|
||||
def dismiss
|
||||
Notification.find_by!(account: current_account, id: params[:id]).destroy!
|
||||
render_empty
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def exclude_types
|
||||
|
||||
Reference in New Issue
Block a user