Always use real URL instead XML feed URL
This commit is contained in:
parent
2aba596785
commit
99225f53b3
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user