@@ -92,7 +92,7 @@ function blog_feed_user($uid = 0) {
...
@@ -92,7 +92,7 @@ function blog_feed_user($uid = 0) {
$account=$user;
$account=$user;
}
}
$result=db_query_range(db_rewrite_sql("SELECT n.nid, n.title, r.teaser, n.created, u.name, u.uid FROM {node} n INNER JOIN {node_revisions} r ON n.vid = r.vid INNER JOIN {users} u ON n.uid = u.uid WHERE n.type = 'blog' AND u.uid = %d AND n.status = 1 ORDER BY n.created DESC"),$uid,0,variable_get('feed_default_items',10));
$result=db_query_range(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.uid = %d AND n.status = 1 ORDER BY n.created DESC"),$uid,0,variable_get('feed_default_items',10));
$channel['title']=$account->name."'s blog";
$channel['title']=$account->name."'s blog";
$channel['link']=url("blog/$uid",NULL,NULL,TRUE);
$channel['link']=url("blog/$uid",NULL,NULL,TRUE);
$channel['description']=$term->description;
$channel['description']=$term->description;
...
@@ -103,7 +103,7 @@ function blog_feed_user($uid = 0) {
...
@@ -103,7 +103,7 @@ function blog_feed_user($uid = 0) {
* Displays an RSS feed containing recent blog entries of all users.
* Displays an RSS feed containing recent blog entries of all users.
*/
*/
functionblog_feed_last(){
functionblog_feed_last(){
$result=db_query_range(db_rewrite_sql("SELECT n.nid, n.title, r.teaser, n.created, u.name, u.uid FROM {node} n INNER JOIN {node_revisions} r ON n.vid = r.vid INNER JOIN {users} u ON n.uid = u.uid WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"),0,variable_get('feed_default_items',10));
$result=db_query_range(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"),0,variable_get('feed_default_items',10));