From f7c6a6ff9071c120f5bd6efe51cdb934e0c30cc7 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 15 Aug 2012 22:33:37 -0700 Subject: item table rename parent-uri, target-type, object-type (more to come later) --- view/theme/diabook/theme.php | 10 +++++----- view/tpl/api_timeline_atom.tpl | 8 ++++---- view/tpl/follow_slap.tpl | 2 +- view/tpl/tag_slap.tpl | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) (limited to 'view') diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php index 53048df6c..2c8290344 100644 --- a/view/theme/diabook/theme.php +++ b/view/theme/diabook/theme.php @@ -540,9 +540,9 @@ if ($color=="dark") $color_path = "/diabook-dark/"; $aside['$like_title'] = t('Last likes'); $aside['$like_items'] = array(); $r = q("SELECT `T1`.`created`, `T1`.`liker`, `T1`.`liker-link`, `item`.* FROM - (SELECT `parent-uri`, `created`, `author-name` AS `liker`,`author-link` AS `liker-link` - FROM `item` WHERE `verb`='http://activitystrea.ms/schema/1.0/like' GROUP BY `parent-uri` ORDER BY `created` DESC) AS T1 - INNER JOIN `item` ON `item`.`uri`=`T1`.`parent-uri` + (SELECT `parent_uri`, `created`, `author-name` AS `liker`,`author-link` AS `liker-link` + FROM `item` WHERE `verb`='http://activitystrea.ms/schema/1.0/like' GROUP BY `parent_uri` ORDER BY `created` DESC) AS T1 + INNER JOIN `item` ON `item`.`uri`=`T1`.`parent_uri` WHERE `T1`.`liker-link` LIKE '%s%%' OR `item`.`author-link` LIKE '%s%%' GROUP BY `uri` ORDER BY `T1`.`created` DESC @@ -554,10 +554,10 @@ if ($color=="dark") $color_path = "/diabook-dark/"; $author = '' . $rr['liker'] . ''; $objauthor = '' . $rr['author-name'] . ''; - //var_dump($rr['verb'],$rr['object-type']); killme(); + //var_dump($rr['verb'],$rr['obj_type']); killme(); switch($rr['verb']){ case 'http://activitystrea.ms/schema/1.0/post': - switch ($rr['object-type']){ + switch ($rr['obj_type']){ case 'http://activitystrea.ms/schema/1.0/event': $post_type = t('event'); break; diff --git a/view/tpl/api_timeline_atom.tpl b/view/tpl/api_timeline_atom.tpl index fb4f51f59..9039220e7 100644 --- a/view/tpl/api_timeline_atom.tpl +++ b/view/tpl/api_timeline_atom.tpl @@ -10,7 +10,7 @@ - http://activitystrea.ms/schema/1.0/person + http://activitystrea.ms/schema/1.0/person $user.url $user.name @@ -31,7 +31,7 @@ - http://activitystrea.ms/schema/1.0/person + http://activitystrea.ms/schema/1.0/person $user.contact_url $user.name @@ -52,7 +52,7 @@ {{ for $statuses as $status }} - $status.objecttype + $status.objecttype $status.message_id $status.text $status.statusnet_html @@ -67,7 +67,7 @@ - http://activitystrea.ms/schema/1.0/person + http://activitystrea.ms/schema/1.0/person $status.user.url $status.user.name diff --git a/view/tpl/follow_slap.tpl b/view/tpl/follow_slap.tpl index 0d0889f7d..1b1443bee 100644 --- a/view/tpl/follow_slap.tpl +++ b/view/tpl/follow_slap.tpl @@ -12,7 +12,7 @@ $content - http://activitystrea.ms/schema/1.0/person + http://activitystrea.ms/schema/1.0/person $profile_page diff --git a/view/tpl/tag_slap.tpl b/view/tpl/tag_slap.tpl index 6449df496..231a13f10 100644 --- a/view/tpl/tag_slap.tpl +++ b/view/tpl/tag_slap.tpl @@ -12,7 +12,7 @@ $content - http://activitystrea.ms/schema/1.0/person + http://activitystrea.ms/schema/1.0/person $profile_page @@ -22,9 +22,9 @@ $verb - + - + -- cgit v1.2.3