]> git.mxchange.org Git - friendica.git/commitdiff
api post default to default post permissions was broken
authorfriendica <info@friendica.com>
Wed, 7 Dec 2011 22:04:34 +0000 (14:04 -0800)
committerfriendica <info@friendica.com>
Wed, 7 Dec 2011 22:04:34 +0000 (14:04 -0800)
boot.php
mod/item.php
mod/message.php

index 032c05a5069a81f9e0df0d7b720c88945732d8bd..bd7dfa8e440c75077bc46822cfaa6d9c9716488d 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
 require_once('include/cache.php');
 
 define ( 'FRIENDICA_PLATFORM',     'Friendica');
-define ( 'FRIENDICA_VERSION',      '2.3.1187' );
+define ( 'FRIENDICA_VERSION',      '2.3.1188' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.22'    );
 define ( 'DB_UPDATE_VERSION',      1111      );
 
index 98425d70e0fb747eff4c6bd78108b9e125b3821f..95a27eb8eaf3b232a9916ea405160e18fe1deda1 100644 (file)
@@ -138,17 +138,6 @@ function item_post(&$a) {
        );
        if(count($r))
                $user = $r[0];
-       
-       if(($api_source) 
-               && (! array_key_exists('allow_cid',$_REQUEST))
-               && (! array_key_exists('allow_gid',$_REQUEST))
-               && (! array_key_exists('deny_cid',$_REQUEST))
-               && (! array_key_exists('deny_gid',$_REQUEST))) {
-               $str_group_allow   = $user['allow_gid'];
-               $str_contact_allow = $user['allow_cid'];
-               $str_group_deny    = $user['deny_gid'];
-               $str_contact_deny  = $user['deny_cid'];
-       }
 
        if($orig_post) {
                $str_group_allow   = $orig_post['allow_gid'];
@@ -214,6 +203,18 @@ function item_post(&$a) {
                }
        }
 
+       if(($api_source) 
+               && (! array_key_exists('allow_cid',$_REQUEST))
+               && (! array_key_exists('allow_gid',$_REQUEST))
+               && (! array_key_exists('deny_cid',$_REQUEST))
+               && (! array_key_exists('deny_gid',$_REQUEST))) {
+               $str_group_allow   = $user['allow_gid'];
+               $str_contact_allow = $user['allow_cid'];
+               $str_group_deny    = $user['deny_gid'];
+               $str_contact_deny  = $user['deny_cid'];
+       }
+
+
        // get contact info for poster
 
        $author = null;
index 7a3b870b31c131656cdaf34cc265bd7ab03c513f..4b494e906f5be8df0f0e8747d6b7d41d9997f678 100644 (file)
@@ -107,12 +107,15 @@ function message_content(&$a) {
                                );
 
                                // remove diaspora conversation pointer
-
-                               if($convid) {
-                                       q("delete from conv where id = %d limit 1",
-                                               intval($convid)
-                                       );
-                               }
+                               // Actually if we do this, we can never receive another reply to that conversation,
+                               // as we will never again have the info we need to re-create it. 
+                               // We'll just have to orphan it. 
+
+                               //if($convid) {
+                               //      q("delete from conv where id = %d limit 1",
+                               //              intval($convid)
+                               //      );
+                               //}
 
                                if($r)
                                        info( t('Conversation removed.') . EOL );