mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Feed unread count may need a POST.
This commit is contained in:
parent
4bc21931e9
commit
0c516b76db
1 changed files with 3 additions and 1 deletions
|
@ -551,9 +551,11 @@ def interactions_count(request):
|
|||
@ajax_login_required
|
||||
@json.json_view
|
||||
def feed_unread_count(request):
|
||||
get_post = getattr(request, request.method)
|
||||
start = time.time()
|
||||
user = request.user
|
||||
feed_ids = request.GET.getlist('feed_id') or request.GET.getlist('feed_id[]')
|
||||
feed_ids = get_post.getlist('feed_id') or get_post.getlist('feed_id[]')
|
||||
|
||||
force = request.GET.get('force', False)
|
||||
social_feed_ids = [feed_id for feed_id in feed_ids if 'social:' in feed_id]
|
||||
feed_ids = list(set(feed_ids) - set(social_feed_ids))
|
||||
|
|
Loading…
Add table
Reference in a new issue