Remove superfluous includes in profile modules
This commit is contained in:
parent
02dda8af9b
commit
1fc1989f93
4 changed files with 1 additions and 7 deletions
|
@ -25,8 +25,6 @@ use Friendica\Protocol\ActivityPub;
|
|||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Temporal;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
||||
class Index extends BaseModule
|
||||
{
|
||||
public static function rawContent(array $parameters = [])
|
||||
|
@ -71,7 +69,6 @@ class Index extends BaseModule
|
|||
|
||||
$is_owner = local_user() == $a->profile_uid;
|
||||
|
||||
$o = '';
|
||||
if (!empty($a->profile['hidewall']) && !$is_owner && !$remote_contact_id) {
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Access to this profile has been restricted.'));
|
||||
}
|
||||
|
|
|
@ -19,8 +19,6 @@ use Friendica\Util\Security;
|
|||
use Friendica\Util\Strings;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
||||
class Status extends BaseModule
|
||||
{
|
||||
public static function content(array $parameters = [])
|
||||
|
|
|
@ -12,8 +12,6 @@ use Friendica\Model\Profile as ProfileModel;
|
|||
use Friendica\Network\HTTPException\ForbiddenException;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
||||
class Profile extends BaseModule
|
||||
{
|
||||
public static function rawContent(array $parameters = [])
|
||||
|
|
|
@ -13,6 +13,7 @@ use Psr\Log\LoggerInterface;
|
|||
|
||||
class PermissionSet extends BaseRepository
|
||||
{
|
||||
/** @var int Virtual permission set id for public permission */
|
||||
const PUBLIC = 0;
|
||||
|
||||
protected static $table_name = 'permissionset';
|
||||
|
|
Loading…
Reference in a new issue