summaryrefslogtreecommitdiffstats
path: root/server/src/websocket
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-02-09 15:04:41 -0500
committerDessalines <tyhou13@gmx.com>2020-02-09 15:04:41 -0500
commit9c8fe0379fea6d3994d72dc461665789e9855423 (patch)
tree34e41c77568f5f81d79377f311f7f99f0d31d9cf /server/src/websocket
parentbe539e335339e1db9704ee55563f16986df72cf4 (diff)
Adding instant voting / vote animations. Fixes #526
Diffstat (limited to 'server/src/websocket')
-rw-r--r--server/src/websocket/server.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs
index 003b886e..1cbcb34f 100644
--- a/server/src/websocket/server.rs
+++ b/server/src/websocket/server.rs
@@ -280,6 +280,9 @@ impl ChatServer {
self.send_community_room_message(0, &post_sent_str, id);
self.send_community_room_message(community_id, &post_sent_str, id);
+ // Send it to the post room
+ self.send_post_room_message(post_sent.post.id, &post_sent_str, id);
+
to_json_string(&user_operation, post)
}