]> git.mxchange.org Git - friendica.git/commitdiff
update attendance state on profile wall
authorrabuzarus <>
Fri, 9 Oct 2015 12:20:01 +0000 (14:20 +0200)
committerrabuzarus <>
Fri, 9 Oct 2015 12:20:01 +0000 (14:20 +0200)
include/conversation.php
include/items.php
mod/network.php
mod/profile.php

index 5bc6525b72b19acaeebb3630b8b4ea9b03dec142..fd03f4b788dae02803d310a7f6277cc673df930f 100644 (file)
@@ -101,9 +101,9 @@ function localize_item(&$item){
 
        $xmlhead="<"."?xml version='1.0' encoding='UTF-8' ?".">";
        if (activity_match($item['verb'],ACTIVITY_LIKE) 
-               || activity_match($item['verb'],ACTIVITY_DISLIKE) 
-               || activity_match($item['verb'],ACTIVITY_ATTEND) 
-               || activity_match($item['verb'],ACTIVITY_ATTENDNO) 
+               || activity_match($item['verb'],ACTIVITY_DISLIKE)
+               || activity_match($item['verb'],ACTIVITY_ATTEND)
+               || activity_match($item['verb'],ACTIVITY_ATTENDNO)
                || activity_match($item['verb'],ACTIVITY_ATTENDMAYBE)){
 
                $r = q("SELECT * from `item`,`contact` WHERE
index a5d2c36911d4b2acdfd34a4b235ebbc1754d306b..ad41a0380ddc02f20c0d2950a164ab2f58e839d6 100644 (file)
@@ -2751,9 +2751,9 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0)
                                $datarray['parent-uri'] = $parent_uri;
                                $datarray['uid'] = $importer['uid'];
                                $datarray['contact-id'] = $contact['id'];
-                               if(($datarray['verb'] === ACTIVITY_LIKE) 
-                                       || ($datarray['verb'] === ACTIVITY_DISLIKE) 
-                                       || ($datarray['verb'] === ACTIVITY_ATTEND) 
+                               if(($datarray['verb'] === ACTIVITY_LIKE)
+                                       || ($datarray['verb'] === ACTIVITY_DISLIKE)
+                                       || ($datarray['verb'] === ACTIVITY_ATTEND)
                                        || ($datarray['verb'] === ACTIVITY_ATTENDNO)
                                        || ($datarray['verb'] === ACTIVITY_ATTENDMAYBE)) {
                                        $datarray['type'] = 'activity';
@@ -3743,8 +3743,8 @@ function local_delivery($importer,$data) {
                                $datarray['contact-id'] = $importer['id'];
 
                                if(($datarray['verb'] === ACTIVITY_LIKE) 
-                                       || ($datarray['verb'] === ACTIVITY_DISLIKE) 
-                                       || ($datarray['verb'] === ACTIVITY_ATTEND) 
+                                       || ($datarray['verb'] === ACTIVITY_DISLIKE)
+                                       || ($datarray['verb'] === ACTIVITY_ATTEND)
                                        || ($datarray['verb'] === ACTIVITY_ATTENDNO)
                                        || ($datarray['verb'] === ACTIVITY_ATTENDMAYBE)) {
                                        $is_like = true;
@@ -3936,8 +3936,8 @@ function local_delivery($importer,$data) {
                                $datarray['uid'] = $importer['importer_uid'];
                                $datarray['contact-id'] = $importer['id'];
                                if(($datarray['verb'] === ACTIVITY_LIKE) 
-                                       || ($datarray['verb'] === ACTIVITY_DISLIKE) 
-                                       || ($datarray['verb'] === ACTIVITY_ATTEND) 
+                                       || ($datarray['verb'] === ACTIVITY_DISLIKE)
+                                       || ($datarray['verb'] === ACTIVITY_ATTEND)
                                        || ($datarray['verb'] === ACTIVITY_ATTENDNO)
                                        || ($datarray['verb'] === ACTIVITY_ATTENDMAYBE)) {
                                        $datarray['type'] = 'activity';
index 9daec49761661a825215ec56b6a1d984c88099a3..9389c07e1b92e34732edce1c09523822b893b236 100644 (file)
@@ -732,9 +732,9 @@ function network_content(&$a, $update = 0) {
                // Fetch a page full of parent items for this page
                if($update) {
                        if (!get_config("system", "like_no_comment"))
-                               $sql_extra4 = "(`item`.`deleted` = 0 
-                                               OR `item`.`verb` = '".ACTIVITY_LIKE."' OR `item`.`verb` = '".ACTIVITY_DISLIKE."' 
-                                               OR `item`.`verb` = '".ACTIVITY_ATTEND."' OR `item`.`verb` = '".ACTIVITY_ATTENDNO."' 
+                               $sql_extra4 = "(`item`.`deleted` = 0
+                                               OR `item`.`verb` = '".ACTIVITY_LIKE."' OR `item`.`verb` = '".ACTIVITY_DISLIKE."'
+                                               OR `item`.`verb` = '".ACTIVITY_ATTEND."' OR `item`.`verb` = '".ACTIVITY_ATTENDNO."'
                                                OR `item`.`verb` = '".ACTIVITY_ATTENDMAYBE."')";
                        else
                                $sql_extra4 = "`item`.`deleted` = 0 AND `item`.`verb` = '".ACTIVITY_POST."'";
index 608971d08d38dd1dce47516b4d1ca2ae5dbd6d88..b7b76cbb5bbe60c30003096513a370142f2d5e41 100644 (file)
@@ -221,8 +221,10 @@ function profile_content(&$a, $update = 0) {
                        FROM `item` INNER JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
                        AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
                        WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND
-                       (`item`.`deleted` = 0 OR item.verb = '" . ACTIVITY_LIKE ."' OR item.verb = '" . ACTIVITY_DISLIKE . "')
-                       and `item`.`moderated` = 0 and `item`.`unseen` = 1
+                       (`item`.`deleted` = 0 OR item.verb = '" . ACTIVITY_LIKE ."'
+                       OR item.verb = '" . ACTIVITY_DISLIKE . "' OR item.verb = '" . ACTIVITY_ATTEND . "'
+                       OR item.verb = '" . ACTIVITY_ATTENDNO . "' OR item.verb = '" . ACTIVITY_ATTENDMAYBE . "')
+                       AND `item`.`moderated` = 0 and `item`.`unseen` = 1
                        AND `item`.`wall` = 1
                        $sql_extra
                        ORDER BY `item`.`created` DESC",