Remove superfluous includes in profile modules

This commit is contained in:
Hypolite Petovan 2020-01-23 10:00:48 -05:00
parent 02dda8af9b
commit 1fc1989f93
4 changed files with 1 additions and 7 deletions

View file

@ -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.'));
}

View file

@ -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 = [])

View file

@ -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 = [])

View file

@ -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';