Detect excessive blog fetches
authorMagnus Hagander <magnus@hagander.net>
Mon, 19 Mar 2018 11:55:43 +0000 (12:55 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 19 Mar 2018 11:55:43 +0000 (12:55 +0100)
commitf0be47c2458cc886b1e31dc9470e455991d24566
tree38b3edfc1489938ae4a9c8112ae2c4f967558655
parentb8d442626a6dba27e214c3250277f57c8156f9e9
Detect excessive blog fetches

If a single fetch from a blog grabs more than <n> entries (the default
being 4), this usually indicates a misconfigured blog and it will end up
spamming the outgoing feed and twitter, even if later corrected. For
that reason, when this happens, mark all the newly fetched entries as
hidden, and send a notification as such. In the event that they are
actually correct, the user can go in and manually unhide those entries,
which will make them show up again.
hamnadmin/hamnadmin/register/management/commands/aggregate_feeds.py
hamnadmin/hamnadmin/settings.py