mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:09:18 +08:00
parent
94607a2f6b
commit
03d28342f8
|
@ -21,7 +21,9 @@ if generate_vapid_key?
|
|||
SiteSetting.vapid_public_key_bytes = Base64.urlsafe_decode64(SiteSetting.vapid_public_key).bytes.join("|")
|
||||
SiteSetting.vapid_base_url = Discourse.base_url
|
||||
|
||||
PushSubscription.delete_all
|
||||
if ActiveRecord::Base.connection.table_exists?(:push_subscriptions)
|
||||
PushSubscription.delete_all
|
||||
end
|
||||
end
|
||||
|
||||
DiscourseEvent.on(:user_logged_out) do |user|
|
||||
|
|
Loading…
Reference in New Issue
Block a user