]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Only perform OAuth when no login data are provided
[friendica.git] / mod / item.php
index 47da7c3c6b6311543db67fba68f2ce9f47c59b3d..a9f1ef808baad0daf07f45f6504851967bb25db1 100644 (file)
@@ -303,9 +303,9 @@ 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 (DI::pConfig()->get($profile_uid, 'system', 'unlisted')) {
-                       $private == Item::UNLISTED;
+                       $private = Item::UNLISTED;
                } else {
-                       $private == Item::PUBLIC;
+                       $private = Item::PUBLIC;
                }
 
                // If this is a comment, set the permissions from the parent.