mirror of https://github.com/zulip/zulip.git
Another attempt at fixing huddle message deduplication.
(imported from commit 3b0a06d7bee7eacbe4eeb8ff6095bdcd5ce17e95)
This commit is contained in:
parent
0be4ce05a6
commit
a3a027f8c7
|
@ -192,7 +192,7 @@ def forge_zephyr(request):
|
|||
# Huddle message, need to make sure we're not syncing it twice!
|
||||
if Zephyr.objects.filter(sender__user__email=request.POST['sender'],
|
||||
content=request.POST['new_zephyr'],
|
||||
pub_date=float(request.POST['time'])):
|
||||
pub_date=datetime.datetime.utcfromtimestamp(float(request.POST['time'])).replace(tzinfo=utc)):
|
||||
# This is a duplicate huddle message, deduplicate!
|
||||
return json_success()
|
||||
|
||||
|
|
Loading…
Reference in New Issue