Fixed fatal error
This commit is contained in:
parent
ca1b92bb34
commit
4bf04dd6ee
|
@ -40,7 +40,6 @@ use Friendica\Core\Worker;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
use Friendica\Model\Attach;
|
use Friendica\Model\Attach;
|
||||||
use Friendica\Model\Config\PConfig;
|
|
||||||
use Friendica\Model\Contact;
|
use Friendica\Model\Contact;
|
||||||
use Friendica\Model\Conversation;
|
use Friendica\Model\Conversation;
|
||||||
use Friendica\Model\FileTag;
|
use Friendica\Model\FileTag;
|
||||||
|
@ -303,7 +302,7 @@ function item_post(App $a) {
|
||||||
|
|
||||||
if (strlen($str_group_allow) || strlen($str_contact_allow) || strlen($str_group_deny) || strlen($str_contact_deny)) {
|
if (strlen($str_group_allow) || strlen($str_contact_allow) || strlen($str_group_deny) || strlen($str_contact_deny)) {
|
||||||
$private = Item::PRIVATE;
|
$private = Item::PRIVATE;
|
||||||
} elseif (PConfig::get($profile_uid, 'system', 'unlisted')) {
|
} elseif (DI::pConfig()->get($profile_uid, 'system', 'unlisted')) {
|
||||||
$private == Item::UNLISTED;
|
$private == Item::UNLISTED;
|
||||||
} else {
|
} else {
|
||||||
$private == Item::PUBLIC;
|
$private == Item::PUBLIC;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user