FIX: Publish DND ends_at updates in httpdate format (#11683)

This commit is contained in:
Mark VanLandingham 2021-01-11 14:11:26 -06:00 committed by GitHub
parent 49b753eee0
commit 3eae4d3669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ class User < ActiveRecord::Base
end
def publish_do_not_disturb(ends_at: nil)
MessageBus.publish("/do-not-disturb/#{id}", { ends_at: ends_at }, user_ids: [id])
MessageBus.publish("/do-not-disturb/#{id}", { ends_at: ends_at&.httpdate }, user_ids: [id])
end
def password=(password)