mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Fixing story email in dev.
This commit is contained in:
parent
f6b5262c4f
commit
046429a024
1 changed files with 3 additions and 2 deletions
|
@ -442,9 +442,10 @@ def interactions_count(request):
|
||||||
}
|
}
|
||||||
|
|
||||||
@never_cache
|
@never_cache
|
||||||
|
@ajax_login_required
|
||||||
@json.json_view
|
@json.json_view
|
||||||
def feed_unread_count(request):
|
def feed_unread_count(request):
|
||||||
user = get_user(request)
|
user = request.user
|
||||||
feed_ids = request.REQUEST.getlist('feed_id')
|
feed_ids = request.REQUEST.getlist('feed_id')
|
||||||
social_feed_ids = [feed_id for feed_id in feed_ids if 'social:' in feed_id]
|
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))
|
feed_ids = list(set(feed_ids) - set(social_feed_ids))
|
||||||
|
@ -1473,7 +1474,7 @@ def send_story_email(request):
|
||||||
comments = request.POST['comments']
|
comments = request.POST['comments']
|
||||||
comments = comments[:2048] # Separated due to PyLint
|
comments = comments[:2048] # Separated due to PyLint
|
||||||
from_address = 'share@newsblur.com'
|
from_address = 'share@newsblur.com'
|
||||||
# share_user_profile = MSocialProfile.get_user(request.user.pk)
|
share_user_profile = MSocialProfile.get_user(request.user.pk)
|
||||||
|
|
||||||
if not to_addresses:
|
if not to_addresses:
|
||||||
code = -1
|
code = -1
|
||||||
|
|
Loading…
Add table
Reference in a new issue