mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
JSON response for submission API now returns url, id, and name.
This commit is contained in:
committed by
Keith Mitchell
parent
92287f219d
commit
aa3bb982dc
@@ -337,6 +337,9 @@ class ApiController(RedditController):
|
||||
if extension:
|
||||
path += ".%s" % extension
|
||||
form.redirect(path)
|
||||
form._send_data(url=path)
|
||||
form._send_data(id=l._id36)
|
||||
form._send_data(name=l._fullname)
|
||||
|
||||
@validatedForm(VRatelimit(rate_ip = True,
|
||||
rate_user = True,
|
||||
|
||||
Reference in New Issue
Block a user