diff options
author | Mario <mario@mariovavti.com> | 2024-02-13 14:05:30 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-02-13 14:05:30 +0000 |
commit | 9a85421a0e0c9b8d0c29c57ad9888defcf9084e1 (patch) | |
tree | a09f80b7aa56eb001677168f13804fe5d0626506 /Zotlabs | |
parent | 1fa59df6f329e8576f9b331a9d05d475e07e6930 (diff) | |
download | volse-hubzilla-9a85421a0e0c9b8d0c29c57ad9888defcf9084e1.tar.gz volse-hubzilla-9a85421a0e0c9b8d0c29c57ad9888defcf9084e1.tar.bz2 volse-hubzilla-9a85421a0e0c9b8d0c29c57ad9888defcf9084e1.zip |
we are now using the item uuid for the notification hash if available. since we can have more than one notification per item (e.g. tag and comment) also look for the notification type to make sure we get the right one
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index a9eaf3136..8a980519d 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -512,7 +512,7 @@ class Enotify { $datarray['link'] = $itemlink; $datarray['parent'] = $parent_mid; $datarray['parent_item'] = $parent_item; - $datarray['ntype'] = $params['type'] ?? ''; + $datarray['ntype'] = $params['type'] ?? 0; $datarray['verb'] = $params['verb'] ?? ''; $datarray['otype'] = $params['otype'] ?? ''; $datarray['abort'] = false; @@ -560,8 +560,9 @@ class Enotify { dbesc($datarray['otype']) ); - $r = q("select id from notify where hash = '%s' and uid = %d limit 1", + $r = q("select id from notify where hash = '%s' and ntype = %d and uid = %d limit 1", dbesc($datarray['hash']), + intval($datarray['ntype']), intval($recip['channel_id']) ); if ($r) { |