mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing autocomplete errors when feed address is invalid.
This commit is contained in:
parent
cafab8c86b
commit
409b829d24
2 changed files with 4 additions and 3 deletions
|
@ -233,12 +233,14 @@ class Feed(models.Model):
|
|||
if self.num_subscribers <= 10 and not settings.DEBUG: return
|
||||
if self.branch_from_feed: return
|
||||
if any(t in self.feed_address for t in ['token', 'private']): return
|
||||
|
||||
parts = urlparse(self.feed_address)
|
||||
if not parts.hostname: return
|
||||
|
||||
engine = RedisEngine(prefix="FT", connection_pool=settings.REDIS_AUTOCOMPLETE_POOL)
|
||||
engine.store(self.pk, title=self.feed_title)
|
||||
engine.boost(self.pk, max(1, self.num_subscribers / 10000.))
|
||||
|
||||
parts = urlparse(self.feed_address)
|
||||
engine = RedisEngine(prefix="FA", connection_pool=settings.REDIS_AUTOCOMPLETE_POOL)
|
||||
engine.store(self.pk, title=parts.hostname)
|
||||
engine.boost(self.pk, max(1, self.num_subscribers / 10000.))
|
||||
|
|
|
@ -79,8 +79,7 @@
|
|||
<img src="/media/img/logo_512.png" class="logo">
|
||||
<h1>NewsBlur is in <span class="error404">maintenance mode</span></h1>
|
||||
<div class="description">
|
||||
<p>This will take approximately 2-3 minutes. I'm upgrading the MongoDB server. This is standard issue maintenance and should cause no harm to the interstellar continuum.</p>
|
||||
<p>Ohh, and if you're reading this, make sure you reload NewsBlur (which you can do right now) to grab the latest real-time upgrades.</p>
|
||||
<p>This will take approximately 2-3 minutes. Redis is throwing errors left and right and needs to be switched out.</p>
|
||||
<p>To pass the time, go surf <a href="http://mlkshk.com/popular" target="_blank">MLKSHK's popular page</a>.</p>
|
||||
<p></p>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue