]> git.mxchange.org Git - friendica.git/commitdiff
privacy enforcement on pubmail_enable
authorFriendika <info@friendika.com>
Tue, 16 Aug 2011 01:29:49 +0000 (18:29 -0700)
committerFriendika <info@friendika.com>
Tue, 16 Aug 2011 01:29:49 +0000 (18:29 -0700)
mod/item.php

index cc4e1e1a84b5b9a5b1ac4b43dae7f2dc8eafbfc3..54472e268669bae5b0a6a29f2e9e0dff2fb48443 100644 (file)
@@ -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",