From 2c9e6bb10f8b3e08698e03d63d57186adc64098a Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 23 Jul 2013 20:17:10 -0700 Subject: potential solution to Friendica for Android photo uploads, which aren't working on Red currently. --- mod/wall_upload.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/wall_upload.php b/mod/wall_upload.php index 0d24755d2..dd5d760b3 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -52,8 +52,11 @@ function wall_upload_post(&$a) { $m = $ret['body']; + // This might make Friendica for Android uploads work again, as it won't have any knowledge of zrl and zmg tags + // and these tags probably aren't useful with other client apps. + if($using_api) - return($ret['body']); + return(str_replace(array('zrl','zmg'),array('url','img'),$ret['body'])); else echo "\n\n" . $ret['body'] . "\n\n"; killme(); -- cgit v1.2.3