mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 11:54:32 +02:00
Expand system.no_auto_update to community, profile statuses and contact conversations pages
- Update setting name and description
This commit is contained in:
parent
6a3d40ab46
commit
e94911620a
4 changed files with 12 additions and 5 deletions
|
@ -37,7 +37,10 @@ class Community extends CommunityModule
|
|||
{
|
||||
self::parseRequest($parameters);
|
||||
|
||||
$o = conversation(DI::app(), self::getItems(), 'community', true, false, 'commented', local_user());
|
||||
$o = '';
|
||||
if (!empty($_GET['force']) || !DI::pConfig()->get(local_user(), 'system', 'no_auto_update')) {
|
||||
$o = conversation(DI::app(), self::getItems(), 'community', true, false, 'commented', local_user());
|
||||
}
|
||||
|
||||
System::htmlUpdateExit($o);
|
||||
}
|
||||
|
|
|
@ -42,8 +42,6 @@ class Profile extends BaseModule
|
|||
throw new ForbiddenException();
|
||||
}
|
||||
|
||||
$o = '';
|
||||
|
||||
$profile_uid = intval($_GET['p'] ?? 0);
|
||||
|
||||
// Ensure we've got a profile owner if updating.
|
||||
|
@ -57,6 +55,12 @@ class Profile extends BaseModule
|
|||
throw new ForbiddenException(DI::l10n()->t('Access to this profile has been restricted.'));
|
||||
}
|
||||
|
||||
$o = '';
|
||||
|
||||
if (empty($_GET['force']) && DI::pConfig()->get(local_user(), 'system', 'no_auto_update')) {
|
||||
System::htmlUpdateExit($o);
|
||||
}
|
||||
|
||||
// Get permissions SQL - if $remote_contact is true, our remote user has been pre-verified and we already have fetched his/her groups
|
||||
$sql_extra = Item::getPermissionsSQLByUserId($a->profile['uid']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue