]> git.mxchange.org Git - friendica.git/commitdiff
removed buggy debug code ;)
authorFriendika <info@friendika.com>
Sun, 22 May 2011 21:20:31 +0000 (14:20 -0700)
committerFriendika <info@friendika.com>
Sun, 22 May 2011 21:20:31 +0000 (14:20 -0700)
boot.php
include/conversation.php
mod/item.php

index 9581541bd449eac2a9cba3374b86830dc24a991a..1a6bf622c4f23d3cad3e4165a5186cf9c17b0a0d 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -4,7 +4,7 @@ set_time_limit(0);
 ini_set('pcre.backtrack_limit', 250000);
 
 
-define ( 'FRIENDIKA_VERSION',      '2.2.987' );
+define ( 'FRIENDIKA_VERSION',      '2.2.988' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1054      );
 
index 5f761ccf0e096d08ccf6973c7ae04b09bbb66f95..4fa4b92ada48b11db0eb2769956ac81e6931bc9f 100644 (file)
@@ -357,7 +357,7 @@ function conversation(&$a, $items, $mode, $update) {
 
                        if($page_writeable) {
                                if($toplevelpost) {
-                                       $likebuttons = replace_macros((($item['private']) ? $noshare_tpl : $like_tpl),array(
+                                       $likebuttons = replace_macros((($item['private'] || ($profile_owner != local_user())) ? $noshare_tpl : $like_tpl),array(
                                                '$id' => $item['id'],
                                                '$likethis' => t("I like this \x28toggle\x29"),
                                                '$nolike' => t("I don't like this \x28toggle\x29"),
index 8c9e004c3f6fe58630acc6f0b2baf0a58ee5549d..66fdc13af30701ce882b21b4edbdd9ac1c2ed12b 100644 (file)
@@ -589,9 +589,6 @@ function item_post(&$a) {
                        dbesc(datetime_convert()),
                        intval($post_id)
                );
-               foreach( $r as $key => $val) {
-                       logger("key: " . $key . " val: " . $val);
-               }
 
                // photo comments turn the corresponding item visible to the profile wall
                // This way we don't see every picture in your new photo album posted to your wall at once.