Permalink
Browse files

Only send 'container' parameter with user friend requests.

  • Loading branch information...
1 parent a4c7c1a commit 0e1d2b51a406678e6ca695408ffeb95ceaf8fdaa @bboe bboe committed Apr 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 reddit/helpers.py
View
@@ -67,10 +67,11 @@ def _modify_relationship(relationship, unlink=False, is_sub=False):
@require_login
def do_relationship(thing, user):
params = {'name': six.text_type(user),
- 'container': thing.content_id,
'type': relationship}
if is_sub:
params['r'] = six.text_type(thing)
+ else:
+ params['container'] = thing.content_id
url = thing.reddit_session.config[url_key]
return thing.reddit_session.request_json(url, params)
return do_relationship

0 comments on commit 0e1d2b5

Please sign in to comment.