]> git.mxchange.org Git - friendica.git/commitdiff
Small bugfix for likes
authorMichael Vogel <icarus@dabo.de>
Mon, 2 Mar 2015 22:34:59 +0000 (23:34 +0100)
committerMichael Vogel <icarus@dabo.de>
Mon, 2 Mar 2015 22:34:59 +0000 (23:34 +0100)
include/bb2diaspora.php
mod/network.php

index 866ac26be4a43bdc7912d7b0bd07ebc66d9f9d13..919bfc331d2ca95891be5b2fa2d262e532ebf806 100644 (file)
@@ -18,7 +18,7 @@ function diaspora2bb($s) {
        $s = html_entity_decode($s,ENT_COMPAT,'UTF-8');
 
        // Remove CR to avoid problems with following code
-       //$s = str_replace("\r","",$s);
+       $s = str_replace("\r","",$s);
 
        $s = str_replace("\n"," \n",$s);
 
index c180252f4440bedf17743efd7b07a350d4135c5e..0f9b0d2339ad41977f03e864c517b7b12bda4d00 100644 (file)
@@ -708,7 +708,7 @@ die("ss");
                        if (!get_config("system", "like_no_comment"))
                                $sql_extra4 = "(`item`.`deleted` = 0 OR `item`.`verb` = '".ACTIVITY_LIKE."' OR `item`.`verb` = '".ACTIVITY_DISLIKE."')";
                        else
-                               $sql_extra4 = "`item`.`deleted` = 0";
+                               $sql_extra4 = "`item`.`deleted` = 0 AND `item`.`verb` = '".ACTIVITY_POST."'";
 
                        $r = q("SELECT `item`.`parent` AS `item_id`, `item`.`network` AS `item_network`, `contact`.`uid` AS `contact_uid`
                                FROM $sql_table $sql_post_table INNER JOIN `contact` ON `contact`.`id` = `item`.`contact-id`