repairing invalid RSS feed in Special:NewPages
authorDanny B <danny_b@users.mediawiki.org>
Thu, 5 Jun 2008 14:20:59 +0000 (14:20 +0000)
committerDanny B <danny_b@users.mediawiki.org>
Thu, 5 Jun 2008 14:20:59 +0000 (14:20 +0000)
<comments> field in RSS contains URL, not plain text - using talk page URL here per Special:RecentChanges feed
RSS 2.0 spec: http://cyber.law.harvard.edu/rss/rss.html#ltcommentsgtSubelementOfLtitemgt

includes/SpecialNewpages.php

index a9f58b2..3201a9a 100644 (file)
@@ -316,7 +316,7 @@ class NewPagesForm {
                $title = Title::MakeTitle( intval( $row->rc_namespace ), $row->rc_title );
                if( $title ) {
                        $date = $row->rc_timestamp;
-                       $comments = $this->stripComment( $row->rc_comment );
+                       $comments = $title->getTalkPage()->getFullURL();
 
                        return new FeedItem(
                                $title->getPrefixedText(),