Always use real URL instead XML feed URL

This commit is contained in:
Frederic Guillot 2017-01-15 16:48:20 -05:00
parent 2aba596785
commit 99225f53b3

View File

@ -67,6 +67,9 @@ function create_feed($user_id, $url, $download_content = false, $rtl = false, $c
list($feed, $resource, $error_message) = fetch_feed($url, $download_content); list($feed, $resource, $error_message) = fetch_feed($url, $download_content);
if ($feed !== null) { if ($feed !== null) {
// Feed URL defined in XML could be wrong
$feed->setFeedUrl($resource->getUrl());
$feed_id = Model\Feed\create( $feed_id = Model\Feed\create(
$user_id, $user_id,
$feed, $feed,