"parent = id" is replaced with gravity check

This commit is contained in:
Michael 2020-05-28 16:02:36 +00:00
parent bdfe47dcfd
commit 0acb5d4558
6 changed files with 12 additions and 9 deletions

View file

@ -823,7 +823,7 @@ function item_photo_menu($item) {
$block_link = '';
$ignore_link = '';
if (local_user() && local_user() == $item['uid'] && $item['parent'] == $item['id'] && !$item['self']) {
if (local_user() && local_user() == $item['uid'] && $item['gravity'] == GRAVITY_PARENT && !$item['self']) {
$sub_link = 'javascript:dosubthread(' . $item['id'] . '); return false;';
}