trim result
authorfriendica <info@friendica.com>
Mon, 24 Sep 2012 19:24:46 +0000 (12:24 -0700)
committerfriendica <info@friendica.com>
Mon, 24 Sep 2012 19:24:46 +0000 (12:24 -0700)
fromapp.tgz
fromapp/fromapp.php

index 7cab4fd..dbe45eb 100644 (file)
Binary files a/fromapp.tgz and b/fromapp.tgz differ
index 58eaa46..51c9590 100644 (file)
@@ -78,7 +78,8 @@ function fromapp_post_hook(&$a,&$item) {
     if(($app === false) || (! strlen($app)))
         return;
 
-       $item['app'] = $app;
+       $apps = explode(',',$app);
+       $item['app'] = trim($apps[mt_rand(0,count($apps)-1)]);
        return;
 
 }
\ No newline at end of file