mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Enforcing limit at oauth source.
This commit is contained in:
parent
6409ae9aca
commit
639060205d
1 changed files with 4 additions and 1 deletions
|
@ -452,9 +452,12 @@ def api_unread_story(request, unread_score=None):
|
|||
},
|
||||
})
|
||||
|
||||
if after:
|
||||
entries = sorted(entries, key=lambda s: s['ifttt']['timestamp'], reverse=True)
|
||||
|
||||
logging.user(request, "~FYChecking unread%s stories with ~SB~FCIFTTT~SN~FY: ~SB%s~SN - ~SB%s~SN stories" % (" ~SBfocus~SN" if unread_score == "new-focus-story" else "", feed_or_folder, len(entries)))
|
||||
|
||||
return {"data": entries}
|
||||
return {"data": entries[:limit]}
|
||||
|
||||
@oauth_login_required
|
||||
@json.json_view
|
||||
|
|
Loading…
Add table
Reference in a new issue