From ffadf260c0682e069ef81fe34c75e1217b7e37fb Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 30 Oct 2012 16:21:24 -0700 Subject: fix channel creation and management after last changes --- mod/manage.php | 3 +-- version.inc | 2 +- view/js/mod_new_channel.js | 4 ++-- view/tpl/channel.tpl | 2 +- view/tpl/new_channel.tpl | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/mod/manage.php b/mod/manage.php index 57d33d086..9fbcea55d 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -22,8 +22,7 @@ function manage_content(&$a) { $channels = null; if(local_user()) { - $r = q("select channel.*, contact.* from channel left join contact on channel.channel_id = contact.uid - where channel.channel_account_id = %d and contact.self = 1", + $r = q("select channel.*, xchan.* from channel left join xchan on channel.channel_hash = xchan.xchan_hash where channel.channel_account_id = %d ", intval(get_account_id()) ); diff --git a/version.inc b/version.inc index feff79e46..a4bc5b083 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2012-10-29.122 +2012-10-30.123 diff --git a/view/js/mod_new_channel.js b/view/js/mod_new_channel.js index 02b6f857e..a3c1dd05c 100644 --- a/view/js/mod_new_channel.js +++ b/view/js/mod_new_channel.js @@ -1,14 +1,14 @@ $(document).ready(function() { $("#newchannel-name").blur(function() { var zreg_name = $("#newchannel-name").val(); - $.get("newchannel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) { + $.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) { $("#newchannel-nickname").val(data); zFormError("#newchannel-name-feedback",data.error); }); }); $("#newchannel-nickname").blur(function() { var zreg_nick = $("#newchannel-nickname").val(); - $.get("newchannel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) { + $.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) { $("#newchannel-nickname").val(data); zFormError("#newchannel-nickname-feedback",data.error); }); diff --git a/view/tpl/channel.tpl b/view/tpl/channel.tpl index 0702bb50b..98c19caa5 100644 --- a/view/tpl/channel.tpl +++ b/view/tpl/channel.tpl @@ -1,5 +1,5 @@
-$channel.channel_name +$channel.channel_name
$channel.channel_name
diff --git a/view/tpl/new_channel.tpl b/view/tpl/new_channel.tpl index b9171644a..f83bc3a11 100644 --- a/view/tpl/new_channel.tpl +++ b/view/tpl/new_channel.tpl @@ -1,6 +1,6 @@

$title

-
+
$desc
-- cgit v1.2.3