mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
choose correct parent for notifications
This commit is contained in:
parent
b6d2d3568c
commit
e4368bab90
1 changed files with 7 additions and 3 deletions
|
@ -191,7 +191,9 @@ class Enotify
|
|||
}
|
||||
}
|
||||
|
||||
$thr_parent = $params['thr_parent'];
|
||||
$thr_parent = array_key_exists('item', $params)
|
||||
? $params['item']['thr_parent']
|
||||
: $params['parent_mid'];
|
||||
|
||||
// Check to see if there was already a notification for this post.
|
||||
// If so don't create a second notification
|
||||
|
@ -304,7 +306,9 @@ class Enotify
|
|||
}
|
||||
}
|
||||
|
||||
$thr_parent = $params['thr_parent'];
|
||||
$thr_parent = array_key_exists('item', $params)
|
||||
? $params['item']['thr_parent']
|
||||
: $params['parent_mid'];
|
||||
|
||||
// Check to see if there was already a notification for this post.
|
||||
// If so don't create a second notification
|
||||
|
|
Loading…
Reference in a new issue