Close links to posts/topics of users for visitors identified as bots

This commit is contained in:
Visman 2023-11-18 19:01:54 +07:00
parent af6fd98f09
commit 766e79b8ed
2 changed files with 8 additions and 2 deletions

View file

@ -257,7 +257,10 @@ class View extends Profile
];
if ($this->curUser->last_post > 0) {
if (1 === $this->user->g_search) {
if (
1 === $this->user->g_search
&& ! $this->user->isBot
) {
$fields['posts'] = [
'class' => ['pline'],
'type' => 'link',

View file

@ -501,7 +501,10 @@ class Search extends Page
case 'topics':
case 'topics_subscriptions':
case 'forums_subscriptions':
if (! isset($uid)) {
if (
! isset($uid)
|| $this->user->isBot
) {
break;
}