]> git.mxchange.org Git - friendica.git/commitdiff
Fixed fatal error
authorMichael <heluecht@pirati.ca>
Mon, 2 Mar 2020 12:29:08 +0000 (12:29 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 2 Mar 2020 12:29:08 +0000 (12:29 +0000)
mod/item.php

index 4e14a047f5577f45e6ac2b04a518d04c0c8dd460..47da7c3c6b6311543db67fba68f2ce9f47c59b3d 100644 (file)
@@ -40,7 +40,6 @@ use Friendica\Core\Worker;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Attach;
-use Friendica\Model\Config\PConfig;
 use Friendica\Model\Contact;
 use Friendica\Model\Conversation;
 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)) {
                        $private = Item::PRIVATE;
-               } elseif (PConfig::get($profile_uid, 'system', 'unlisted')) {
+               } elseif (DI::pConfig()->get($profile_uid, 'system', 'unlisted')) {
                        $private == Item::UNLISTED;
                } else {
                        $private == Item::PUBLIC;