Many more app-variables removed

This commit is contained in:
Michael 2021-07-24 10:09:39 +00:00
parent e05c1821c2
commit 2502a9192d
30 changed files with 310 additions and 401 deletions

View file

@ -970,7 +970,6 @@ class Post
'$prompttext' => DI::l10n()->t('Please enter a image/video/audio/webpage URL:'),
'$preview' => DI::l10n()->t('Preview'),
'$indent' => $indent,
'$sourceapp' => DI::l10n()->t($a->sourcename),
'$rand_num' => Crypto::randomDigits(12)
]);
}

View file

@ -79,11 +79,11 @@ class Thread
$this->writable = true;
break;
case 'profile':
$this->profile_owner = $a->profile['uid'];
$this->profile_owner = $a->profile_owner;
$this->writable = Security::canWriteToUserWall($this->profile_owner);
break;
case 'display':
$this->profile_owner = $a->profile['uid'];
$this->profile_owner = $a->profile_owner;
$this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
break;
case 'community':