Offer "follow thread" only when you don't already follow

This commit is contained in:
Michael 2021-02-28 07:47:07 +00:00
parent f7c1cdde3b
commit 530cfba71e
3 changed files with 3 additions and 3 deletions

View file

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