forked from friendica/friendica-addons
trim result
This commit is contained in:
parent
6c1a20968c
commit
1ea5df563f
BIN
fromapp.tgz
BIN
fromapp.tgz
Binary file not shown.
|
@ -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;
|
||||
|
||||
}
|
Loading…
Reference in a new issue