issue #409 - use item_notshown for file activities to prevent display but allow transmitting to other sites. We currently allow file acitivies with item_hidden to be transmitted as a special case but eventually we want to remove the special case and disallow items with item_hidden from being propagated.

This commit is contained in:
zotlabs 2016-11-02 21:17:18 -07:00
parent ae092efb49
commit 92f5a2b6a6

View File

@ -1581,7 +1581,7 @@ function file_activity($channel_id, $object, $allow_cid, $allow_gid, $deny_cid,
$arr['author_xchan'] = $poster['xchan_hash']; $arr['author_xchan'] = $poster['xchan_hash'];
$arr['owner_xchan'] = $poster['xchan_hash']; $arr['owner_xchan'] = $poster['xchan_hash'];
$arr['title'] = ''; $arr['title'] = '';
$arr['item_hidden'] = 1; $arr['item_notshown'] = 1;
$arr['obj_type'] = $objtype; $arr['obj_type'] = $objtype;
$arr['resource_id'] = $object['hash']; $arr['resource_id'] = $object['hash'];
$arr['resource_type'] = 'attach'; $arr['resource_type'] = 'attach';