<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [2280] trunk/bp-activity/feeds:
  Updated RSS feeds with better comment and link support.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>2280</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2010-01-09 10:37:50 +0000 (Sat, 09 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Updated RSS feeds with better comment and link support.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivityfeedsbpactivityfriendsfeedphp">trunk/bp-activity/feeds/bp-activity-friends-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitygroupfeedphp">trunk/bp-activity/feeds/bp-activity-group-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitypersonalfeedphp">trunk/bp-activity/feeds/bp-activity-personal-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitysitewidefeedphp">trunk/bp-activity/feeds/bp-activity-sitewide-feed.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivityfeedsbpactivityfriendsfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-friends-feed.php (2279 => 2280)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-friends-feed.php        2010-01-09 10:05:58 UTC (rev 2279)
+++ trunk/bp-activity/feeds/bp-activity-friends-feed.php        2010-01-09 10:37:50 UTC (rev 2280)
</span><span class="lines">@@ -27,16 +27,30 @@
</span><span class="cx">         &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
</span><span class="cx">         &lt;?php do_action('bp_activity_friends_feed_head'); ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php if ( bp_has_activities( 'type=friends&amp;max=50' ) ) : ?&gt;
</del><ins>+        &lt;?php $friend_ids = implode( ',', friends_get_friend_user_ids( $bp-&gt;displayed_user-&gt;id ) ); ?&gt;
+        &lt;?php if ( bp_has_activities( 'user_id=' . $friend_ids . '&amp;max=50&amp;display_comments=inline' ) ) : ?&gt;
</ins><span class="cx">                 &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
</span><span class="cx">                         &lt;item&gt;
</span><span class="cx">                                 &lt;guid&gt;&lt;?php bp_activity_thread_permalink() ?&gt;&lt;/guid&gt;
</span><span class="cx">                                 &lt;title&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_title() ?&gt;]]&gt;&lt;/title&gt;
</span><del>-                                &lt;link&gt;&lt;?php echo bp_activity_feed_item_link() ?&gt;&lt;/link&gt;
</del><ins>+                                &lt;link&gt;&lt;?php echo bp_activity_thread_permalink() ?&gt;&lt;/link&gt;
</ins><span class="cx">                                 &lt;pubDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?&gt;&lt;/pubDate&gt;
</span><span class="cx"> 
</span><del>-                                &lt;description&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_description() ?&gt;]]&gt;&lt;/description&gt;
-                        &lt;?php do_action('bp_activity_personal_feed_item'); ?&gt;
</del><ins>+                                &lt;description&gt;
+                                        &lt;![CDATA[
+                                        &lt;?php bp_activity_feed_item_description() ?&gt;
+
+                                        &lt;?php if ( bp_activity_can_comment() ) : ?&gt;
+                                                &lt;p&gt;&lt;?php printf( __( 'Comments: %s', 'buddypress' ), bp_activity_get_comment_count() ); ?&gt;&lt;/p&gt;
+                                        &lt;?php endif; ?&gt;
+
+                                        &lt;?php if ( 'activity_comment' == bp_get_activity_action_name() ) : ?&gt;
+                                                &lt;br /&gt;&lt;strong&gt;&lt;?php _e( 'In reply to', 'buddypress' ) ?&gt;&lt;/strong&gt; -
+                                                &lt;?php bp_activity_parent_content() ?&gt;
+                                        &lt;?php endif; ?&gt;
+                                        ]]&gt;
+                                &lt;/description&gt;
+                                &lt;?php do_action('bp_activity_personal_feed_item'); ?&gt;
</ins><span class="cx">                         &lt;/item&gt;
</span><span class="cx">                 &lt;?php endwhile; ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitygroupfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-group-feed.php (2279 => 2280)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-group-feed.php        2010-01-09 10:05:58 UTC (rev 2279)
+++ trunk/bp-activity/feeds/bp-activity-group-feed.php        2010-01-09 10:37:50 UTC (rev 2280)
</span><span class="lines">@@ -27,15 +27,23 @@
</span><span class="cx">         &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
</span><span class="cx">         &lt;?php do_action('bp_activity_group_feed_head'); ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php if ( bp_has_activities( 'object=' . $bp-&gt;groups-&gt;id . '&amp;primary_id=' . $bp-&gt;groups-&gt;current_group-&gt;id . '&amp;max=50' ) ) : ?&gt;
</del><ins>+        &lt;?php if ( bp_has_activities( 'object=' . $bp-&gt;groups-&gt;id . '&amp;primary_id=' . $bp-&gt;groups-&gt;current_group-&gt;id . '&amp;max=50&amp;display_comments=threaded' ) ) : ?&gt;
</ins><span class="cx">                 &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
</span><span class="cx">                         &lt;item&gt;
</span><span class="cx">                                 &lt;guid&gt;&lt;?php bp_activity_thread_permalink() ?&gt;&lt;/guid&gt;
</span><span class="cx">                                 &lt;title&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_title() ?&gt;]]&gt;&lt;/title&gt;
</span><del>-                                &lt;link&gt;&lt;?php echo bp_activity_feed_item_link() ?&gt;&lt;/link&gt;
</del><ins>+                                &lt;link&gt;&lt;?php echo bp_activity_thread_permalink() ?&gt;&lt;/link&gt;
</ins><span class="cx">                                 &lt;pubDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?&gt;&lt;/pubDate&gt;
</span><span class="cx"> 
</span><del>-                                &lt;description&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_description() ?&gt;]]&gt;&lt;/description&gt;
</del><ins>+                                &lt;description&gt;
+                                        &lt;![CDATA[
+                                                &lt;?php bp_activity_feed_item_description() ?&gt;
+
+                                                &lt;?php if ( bp_activity_can_comment() ) : ?&gt;
+                                                        &lt;p&gt;&lt;?php printf( __( 'Comments: %s', 'buddypress' ), bp_activity_get_comment_count() ); ?&gt;&lt;/p&gt;
+                                                &lt;?php endif; ?&gt;
+                                        ]]&gt;
+                                &lt;/description&gt;
</ins><span class="cx">                                 &lt;?php do_action('bp_activity_group_feed_item'); ?&gt;
</span><span class="cx">                         &lt;/item&gt;
</span><span class="cx">                 &lt;?php endwhile; ?&gt;
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitypersonalfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-personal-feed.php (2279 => 2280)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-personal-feed.php        2010-01-09 10:05:58 UTC (rev 2279)
+++ trunk/bp-activity/feeds/bp-activity-personal-feed.php        2010-01-09 10:37:50 UTC (rev 2280)
</span><span class="lines">@@ -27,15 +27,28 @@
</span><span class="cx">         &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
</span><span class="cx">         &lt;?php do_action('bp_activity_personal_feed_head'); ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php if ( bp_has_activities( 'user_id=' . $bp-&gt;displayed_user-&gt;id . '&amp;max=50' ) ) : ?&gt;
</del><ins>+        &lt;?php if ( bp_has_activities( 'user_id=' . $bp-&gt;displayed_user-&gt;id . '&amp;max=50&amp;display_comments=inline' ) ) : ?&gt;
</ins><span class="cx">                 &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
</span><span class="cx">                         &lt;item&gt;
</span><span class="cx">                                 &lt;guid&gt;&lt;?php bp_activity_thread_permalink() ?&gt;&lt;/guid&gt;
</span><span class="cx">                                 &lt;title&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_title() ?&gt;]]&gt;&lt;/title&gt;
</span><del>-                                &lt;link&gt;&lt;?php echo bp_activity_feed_item_link() ?&gt;&lt;/link&gt;
</del><ins>+                                &lt;link&gt;&lt;?php echo bp_activity_thread_permalink() ?&gt;&lt;/link&gt;
</ins><span class="cx">                                 &lt;pubDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?&gt;&lt;/pubDate&gt;
</span><span class="cx"> 
</span><del>-                                &lt;description&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_description() ?&gt;]]&gt;&lt;/description&gt;
</del><ins>+                                &lt;description&gt;
+                                        &lt;![CDATA[
+                                        &lt;?php bp_activity_feed_item_description() ?&gt;
+
+                                        &lt;?php if ( bp_activity_can_comment() ) : ?&gt;
+                                                &lt;p&gt;&lt;?php printf( __( 'Comments: %s', 'buddypress' ), bp_activity_get_comment_count() ); ?&gt;&lt;/p&gt;
+                                        &lt;?php endif; ?&gt;
+
+                                        &lt;?php if ( 'activity_comment' == bp_get_activity_action_name() ) : ?&gt;
+                                                &lt;br /&gt;&lt;strong&gt;&lt;?php _e( 'In reply to', 'buddypress' ) ?&gt;&lt;/strong&gt; -
+                                                &lt;?php bp_activity_parent_content() ?&gt;
+                                        &lt;?php endif; ?&gt;
+                                        ]]&gt;
+                                &lt;/description&gt;
</ins><span class="cx">                                 &lt;?php do_action('bp_activity_personal_feed_item'); ?&gt;
</span><span class="cx">                         &lt;/item&gt;
</span><span class="cx">                 &lt;?php endwhile; ?&gt;
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitysitewidefeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-sitewide-feed.php (2279 => 2280)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-sitewide-feed.php        2010-01-09 10:05:58 UTC (rev 2279)
+++ trunk/bp-activity/feeds/bp-activity-sitewide-feed.php        2010-01-09 10:37:50 UTC (rev 2280)
</span><span class="lines">@@ -28,12 +28,12 @@
</span><span class="cx">         &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
</span><span class="cx">         &lt;?php do_action('bp_activity_sitewide_feed_head'); ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php if ( bp_has_activities( 'type=sitewide&amp;max=50' ) ) : ?&gt;
</del><ins>+        &lt;?php if ( bp_has_activities( 'type=sitewide&amp;max=50&amp;display_comments=threaded' ) ) : ?&gt;
</ins><span class="cx">                 &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
</span><span class="cx">                         &lt;item&gt;
</span><span class="cx">                                 &lt;guid&gt;&lt;?php bp_activity_thread_permalink() ?&gt;&lt;/guid&gt;
</span><span class="cx">                                 &lt;title&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_title() ?&gt;]]&gt;&lt;/title&gt;
</span><del>-                                &lt;link&gt;&lt;?php bp_activity_feed_item_link() ?&gt;&lt;/link&gt;
</del><ins>+                                &lt;link&gt;&lt;?php bp_activity_thread_permalink() ?&gt;&lt;/link&gt;
</ins><span class="cx">                                 &lt;pubDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?&gt;&lt;/pubDate&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;description&gt;
</span></span></pre>
</div>
</div>

</body>
</html>