FeedItem: Use full URL with protocol for <id>/<guid> in Atom/RSS feeds
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 7 Mar 2015 22:52:44 +0000 (23:52 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 7 Mar 2015 22:52:44 +0000 (23:52 +0100)
Bug: T89975
Change-Id: Ib84932b70aa8194b7bdabe7c90d7fdcc66054a1c

includes/Feed.php

index 9be3f57..600b136 100644 (file)
@@ -92,7 +92,7 @@ class FeedItem {
         */
        public function getUniqueId() {
                if ( $this->uniqueId ) {
-                       return $this->xmlEncode( $this->uniqueId );
+                       return $this->xmlEncode( wfExpandUrl( $this->uniqueId, PROTO_CURRENT ) );
                }
        }