From 3bddaa9e0467de602be062c08dbb40eca65e9d1d Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 20 Feb 2014 15:00:29 -0800 Subject: title missing in private mention posts --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/item.php b/mod/item.php index dc005bb20..2feb64a37 100644 --- a/mod/item.php +++ b/mod/item.php @@ -269,7 +269,7 @@ function item_post(&$a) { $coord = $orig_post['coord']; $verb = $orig_post['verb']; $app = $orig_post['app']; - $title = escape_tags(trim($_REQUEST['title'])); + $title = $_REQUEST['title']; $body = $_REQUEST['body']; $private = $orig_post['item_private']; $item_flags = $orig_post['item_flags']; -- cgit v1.2.3 From e55170c00a74675cc9654e3485e29372867e402f Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 20 Feb 2014 17:07:43 -0800 Subject: code cleanup --- mod/wall_attach.php | 17 +++-------------- mod/wall_upload.php | 11 ++--------- 2 files changed, 5 insertions(+), 23 deletions(-) (limited to 'mod') diff --git a/mod/wall_attach.php b/mod/wall_attach.php index 6e9443f12..47c097416 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -1,23 +1,12 @@ 1) { - $nick = argv(1); - $r = q("SELECT channel.* from channel where channel_address = '%s' limit 1", - dbesc($nick) - ); - if(! $r) - killme(); - $channel = $r[0]; - - } - + if(argc() > 1) + $channel = get_channel_by_nick(argv(1)); else killme(); diff --git a/mod/wall_upload.php b/mod/wall_upload.php index dd5d760b3..2939cf0d1 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -1,6 +1,7 @@ Date: Thu, 20 Feb 2014 17:20:24 -0800 Subject: small changes to a couple of lookup functions which we need to use a bit more --- mod/photos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/photos.php b/mod/photos.php index 2fe2d8a74..e2279188a 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -27,7 +27,7 @@ function photos_init(&$a) { if(! $channelx) return; - $a->data['channel'] = $channelx[0]; + $a->data['channel'] = $channelx; $observer = $a->get_observer(); $a->data['observer'] = $observer; -- cgit v1.2.3