]> git.mxchange.org Git - friendica.git/commitdiff
fixes
authorMike Macgirvin <mike@macgirvin.com>
Fri, 10 Sep 2010 01:49:19 +0000 (18:49 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Fri, 10 Sep 2010 01:49:19 +0000 (18:49 -0700)
boot.php
database.sql
mod/display.php
update.php

index 125f4ae0a4f9c1086ddd5d860a33c1da9f5b1d85..0ba561e93039f169b0b5d82ecd334c96f1018fc2 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -2,7 +2,7 @@
 
 set_time_limit(0);
 
-define ( 'BUILD_ID' , 1001 );
+define ( 'BUILD_ID' , 1002 );
 
 define ( 'EOL', "<br />\r\n");
 define ( 'ATOM_TIME',  'Y-m-d\TH:i:s\Z' );
@@ -33,7 +33,7 @@ define ( 'NAMESPACE_ACTIVITY',        'http://activitystrea.ms/spec/1.0/' );
 define ( 'NAMESPACE_ACTIVITY_SCHEMA', 'http://activitystrea.ms/schema/1.0/');
 
 define ( 'ACTIVITY_LIKE',        NAMESPACE_ACTIVITY_SCHEMA . 'like' );
-define ( 'ACTIVITY_DISLIKE'      NAMESPACE_DFRN            . '/dislike' );
+define ( 'ACTIVITY_DISLIKE',     NAMESPACE_DFRN            . '/dislike' );
 define ( 'ACTIVITY_OBJ_HEART',   NAMESPACE_DFRN            . '/heart' );
 
 define ( 'ACTIVITY_FRIEND',      NAMESPACE_ACTIVITY_SCHEMA . 'make-friend' );
index 2541de76a3ed6f02e6ab6a1e1d7f9ed1a3bbe03b..22a55ceb0891e48651aa52e0ce4d3131703eef70 100644 (file)
@@ -145,6 +145,7 @@ CREATE TABLE IF NOT EXISTS `item` (
   `uid` int(10) unsigned NOT NULL DEFAULT '0',
   `contact-id` int(10) unsigned NOT NULL DEFAULT '0',
   `type` char(255) NOT NULL,
+  `wall` tinyint(1) NOT NULL DEFAULT '0',
   `parent` int(10) unsigned NOT NULL DEFAULT '0',
   `parent-uri` char(255) CHARACTER SET ascii NOT NULL,
   `created` datetime NOT NULL,
index 2125e169631ab38eb6d2096747a8a4da9a7433d9..639a30eb7d24aed29345d2e333a9d910065a6dbb 100644 (file)
@@ -75,7 +75,7 @@ function display_content(&$a) {
                        " AND ( `allow_cid` = '' OR `allow_cid` REGEXP '<%d>' ) 
                          AND ( `deny_cid`  = '' OR  NOT `deny_cid` REGEXP '<%d>' ) 
                          AND ( `allow_gid` = '' OR `allow_gid` REGEXP '%s' )
-                         AND ( `deny_gid`  = '' OR NOT `deny_gid` REGEXP '%s') ",
+                         AND ( `deny_gid`  = '' OR  NOT `deny_gid` REGEXP '%s') ",
 
                        intval($_SESSION['visitor_id']),
                        intval($_SESSION['visitor_id']),
@@ -91,17 +91,19 @@ function display_content(&$a) {
                FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
                WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
                AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
-               AND `item`.`parent` = ( SELECT `parent` FROM `item` WHERE `id` = %d )
+               AND `item`.`parent` = ( SELECT `parent` FROM `item` WHERE ( `id` = '%s' OR `uri` = '%s' ))
                $sql_extra
                ORDER BY `parent` DESC, `id` ASC ",
                intval($a->profile['uid']),
-               intval($item_id)
+               dbesc($item_id),
+               dbesc($item_id)
        );
 
 
        $cmnt_tpl = file_get_contents('view/comment_item.tpl');
 
        $tpl = file_get_contents('view/wall_item.tpl');
+       $wallwall = file_get_contents('view/wallwall_item.tpl');
 
        $return_url = $_SESSION['return_url'] = $a->cmd;
 
@@ -164,9 +166,6 @@ function display_content(&$a) {
                                }
                        }
 
-
-
-
                        $profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']);
                        $profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['thumb']);
                        $profile_link = $profile_url;
@@ -187,12 +186,14 @@ function display_content(&$a) {
                                '$ago' => relative_date($item['created']),
                                '$location' => (($item['location']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['location']) . '">' . $item['location'] . '</a>' : ''),
                                '$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''),
+                               '$owner_url' => $owner_url,
+                               '$owner_photo' => $owner_photo,
+                               '$owner_name' => $owner_name,
                                '$drop' => $drop,
                                '$comment' => $comment
                        ));
-                       
+
                }
        }
-
        return $o;
 }
\ No newline at end of file
index e01bafb901c0caa747ad1cd4fd97f88e9716893a..a39450579a257cf1fd35f3fd4905f4a17e8a9fcc 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-function update_1001() {
+function update_1000() {
 
        q("ALTER TABLE `item` DROP `like`, DROP `dislike` ");
 
@@ -12,4 +12,8 @@ function update_1001() {
        q("ALTER TABLE `contact` ADD `duplex` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `rel` ");
        q("ALTER TABLE `contact` CHANGE `issued-pubkey` `issued-pubkey` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL");  
        q("ALTER TABLE `contact` ADD `term-date` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `avatar-date`");
-}
\ No newline at end of file
+}
+
+function update_1001() {
+       q("ALTER TABLE `item` ADD `wall` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `type` ");
+}