Merge branch 'delete-attach-hook' into 'dev'
delete_attach hook See merge request hubzilla/core!1275
This commit is contained in:
commit
0b12a7e66f
@ -1428,6 +1428,8 @@ function attach_delete($channel_id, $resource, $is_photo = 0) {
|
|||||||
|
|
||||||
if(! $r) {
|
if(! $r) {
|
||||||
attach_drop_photo($channel_id,$resource);
|
attach_drop_photo($channel_id,$resource);
|
||||||
|
$arr = ['channel_id' => $channel_id, 'resource' => $resource, 'is_photo'=>$is_photo];
|
||||||
|
call_hooks("attach_delete",$arr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1486,6 +1488,9 @@ function attach_delete($channel_id, $resource, $is_photo = 0) {
|
|||||||
intval($channel_id)
|
intval($channel_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$arr = ['channel_id' => $channel_id, 'resource' => $resource, 'is_photo'=>$is_photo];
|
||||||
|
call_hooks("attach_delete",$arr);
|
||||||
|
|
||||||
file_activity($channel_id, $object, $object['allow_cid'], $object['allow_gid'], $object['deny_cid'], $object['deny_gid'], 'update', true);
|
file_activity($channel_id, $object, $object['allow_cid'], $object['allow_gid'], $object['deny_cid'], $object['deny_gid'], 'update', true);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user