mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
improved code for file star/comment
This commit is contained in:
4
views.py
4
views.py
@@ -2827,8 +2827,8 @@ def repo_star_file(request, repo_id):
|
||||
content_type = 'application/json; charset=utf-8'
|
||||
|
||||
if not (path and state):
|
||||
return HttpResponse(json.dumps({'success':False, 'err_msg':_(u'Invalid arguments')}),
|
||||
content_type=content_type)
|
||||
return HttpResponse(json.dumps({'error': _(u'Invalid arguments')}),
|
||||
status=400, content_type=content_type)
|
||||
|
||||
org_id = int(request.POST.get('org_id'))
|
||||
path = urllib2.unquote(path.encode('utf-8'))
|
||||
|
Reference in New Issue
Block a user