mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: Publish DND ends_at updates in httpdate format (#11683)
This commit is contained in:
parent
49b753eee0
commit
3eae4d3669
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user