PSHB bugs

Introduced by https://github.com/FreshRSS/FreshRSS/pull/1280
This commit is contained in:
Alexandre Alapetite
2016-10-07 21:46:48 +02:00
parent a0d502a763
commit ca4dcca5b2
2 changed files with 3 additions and 1 deletions

View File

@@ -271,7 +271,8 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
if ($ttl == -1) {
continue; //Feed refresh is disabled
}
if ($feed->lastUpdate() + 10 >= time() - ($ttl == -2 ? FreshRSS_Context::$user_conf->ttl_default : $ttl)) {
if ((!$simplePiePush) && (!$feed_id) &&
($feed->lastUpdate() + 10 >= time() - ($ttl == -2 ? FreshRSS_Context::$user_conf->ttl_default : $ttl))) {
//Too early to refresh from source, but check whether the feed was updated by another user
$mtime = $feed->cacheModifiedTime();
if ($feed->lastUpdate() + 10 >= $mtime) {