reverse file activity logic

This commit is contained in:
Mario Vavti
2015-04-12 13:13:22 +02:00
parent e64de798b5
commit 7c8b9397ae
5 changed files with 18 additions and 33 deletions

View File

@@ -985,7 +985,7 @@ function pipe_streams($in, $out) {
* @param string $verb
* @param boolean $no_activity
*/
function file_activity($channel_id, $object, $allow_cid, $allow_gid, $deny_cid, $deny_gid, $verb, $no_activity) {
function file_activity($channel_id, $object, $allow_cid, $allow_gid, $deny_cid, $deny_gid, $verb, $notify) {
require_once('include/items.php');
@@ -1107,7 +1107,7 @@ function file_activity($channel_id, $object, $allow_cid, $allow_gid, $deny_cid,
//notice( t('File activity updated') . EOL);
}
if($no_activity) {
if(! $notify) {
return;
}