mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing a common error for feeds: too many feed authors causing an error. Now correctly reducing the author list to an acceptable amount.
This commit is contained in:
parent
cf8cfaba75
commit
077fdea638
1 changed files with 2 additions and 3 deletions
|
@ -396,9 +396,8 @@ class Feed(models.Model):
|
|||
self.save(lock=lock)
|
||||
return
|
||||
|
||||
authors_list = json.decode(feed_authors) if feed_authors else []
|
||||
if len(authors_list) > 1:
|
||||
self.save_popular_authors(authors_list[:-1])
|
||||
if len(feed_authors) > 1:
|
||||
self.save_popular_authors(feed_authors=feed_authors[:-1], lock=lock)
|
||||
|
||||
def trim_feed(self):
|
||||
from apps.reader.models import UserStory
|
||||
|
|
Loading…
Add table
Reference in a new issue