diff options
author | friendica <info@friendica.com> | 2013-07-23 20:17:10 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-23 20:17:10 -0700 |
commit | 2c9e6bb10f8b3e08698e03d63d57186adc64098a (patch) | |
tree | 6bce0c9fd17ec834a934435cd17f6e9ed0ecc3c5 /mod/wall_upload.php | |
parent | 52df14d80daa155b3155df1d10c8d08bf1e4cba6 (diff) | |
download | volse-hubzilla-2c9e6bb10f8b3e08698e03d63d57186adc64098a.tar.gz volse-hubzilla-2c9e6bb10f8b3e08698e03d63d57186adc64098a.tar.bz2 volse-hubzilla-2c9e6bb10f8b3e08698e03d63d57186adc64098a.zip |
potential solution to Friendica for Android photo uploads, which aren't working on Red currently.
Diffstat (limited to 'mod/wall_upload.php')
-rw-r--r-- | mod/wall_upload.php | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |