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
|
end
|
||||||
|
|
||||||
def publish_do_not_disturb(ends_at: nil)
|
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
|
end
|
||||||
|
|
||||||
def password=(password)
|
def password=(password)
|
||||||
|
|
Loading…
Reference in New Issue