]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
update DE strings
[friendica.git] / mod / item.php
index cc4e1e1a84b5b9a5b1ac4b43dae7f2dc8eafbfc3..ef0b232d56b12b96374f3c2356fed80be5b24afa 100644 (file)
@@ -35,7 +35,7 @@ function item_post(&$a) {
 
        call_hooks('post_local_start', $_POST);
 
-       $api_source = ((x($_POST,'api_source')) ? true : false);
+       $api_source = ((x($_POST,'api_source') && $_POST['api_source']) ? true : false);
 
        /**
         * Is this a reply to something?
@@ -180,7 +180,7 @@ function item_post(&$a) {
 
                // if using the API, we won't see pubmail_enable - figure out if it should be set
 
-               if($api_source && $profile_uid && $profile_uid == local_user()) {
+               if($api_source && $profile_uid && $profile_uid == local_user() && (! $private)) {
                        $mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
                        if(! $mail_disabled) {
                                $r = q("SELECT * FROM `mailacct` WHERE `uid` = %d AND `server` != '' LIMIT 1",