aboutsummaryrefslogtreecommitdiffstats
path: root/mod/chat.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-03 18:44:40 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-03 18:44:40 -0700
commitd79e81a0697617b5552917c2fe169b30433c54f6 (patch)
tree77fb93e47bd18d8fab477aa5f5abe3ee79a3a452 /mod/chat.php
parentd93e1c84acd07188e8cba06249b11840d562d011 (diff)
downloadvolse-hubzilla-d79e81a0697617b5552917c2fe169b30433c54f6.tar.gz
volse-hubzilla-d79e81a0697617b5552917c2fe169b30433c54f6.tar.bz2
volse-hubzilla-d79e81a0697617b5552917c2fe169b30433c54f6.zip
import and sync chatrooms
Diffstat (limited to 'mod/chat.php')
-rw-r--r--mod/chat.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/chat.php b/mod/chat.php
index c2c11d0ab..633ecae22 100644
--- a/mod/chat.php
+++ b/mod/chat.php
@@ -62,11 +62,13 @@ function chat_post(&$a) {
chatroom_create($channel,$arr);
- $x = q("select cr_id from chatroom where cr_name = '%s' and cr_uid = %d limit 1",
+ $x = q("select * from chatroom where cr_name = '%s' and cr_uid = %d limit 1",
dbesc($room),
intval(local_channel())
);
+ create_sync_packet(0, array['chatroom'] => $x);
+
if($x)
goaway(z_root() . '/chat/' . $channel['channel_address'] . '/' . $x[0]['cr_id']);