fix permission_{accept, reject} hooks not being called

This commit is contained in:
Mario Vavti 2017-09-19 11:12:52 +02:00
parent 105e7626fc
commit 66fb0fdcd7

View File

@ -161,7 +161,7 @@ class Notifier {
$packet_type = 'keychange'; $packet_type = 'keychange';
$normal_mode = false; $normal_mode = false;
} }
elseif($cmd == 'permission_update' || $cmd == 'permission_create') { elseif($cmd == 'permission_update' || $cmd == 'permission_reject' || $cmd == 'permission_accept' || $cmd == 'permission_create') {
// Get the (single) recipient // Get the (single) recipient
$r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_id = %d and abook_self = 0", $r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_id = %d and abook_self = 0",
intval($item_id) intval($item_id)