Browse Source

Be sure to dict-ify for JSON purposes

Getty Ritter 4 years ago
parent
commit
cfa59f7b0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lc/app.py

+ 1 - 1
lc/app.py

@@ -125,7 +125,7 @@ class CreateLink(Endpoint):
         u = self.require_authentication(user)
         req = self.request_data(r.Link)
         l = m.Link.from_request(u, req)
-        return self.api_ok(l.link_url(), l)
+        return self.api_ok(l.link_url(), l.to_dict())
 
 
 @endpoint("/u/<string:user>/l/<string:link>")