heartranked

git clone https://git.tarina.org/heartranked
Log | Files | Refs | README

commit f9b4a0eca076dc8463e2a3eaafa1a6aac0c8f17a
parent bc55b7a7885681b7176c194c5974a3fed4a09aa6
Author: rbckman <rob@tarina.org>
Date:   Sat, 22 Aug 2026 13:11:28 +0300

use jsonify

Diffstat:
Mserver.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server.py b/server.py @@ -1892,7 +1892,8 @@ class pull: l=loadjson('p/posts/'+p+'/meta') postdict.update({l['postid']:{'postid': l['postid'], 'name': l['creator']}}) web.header('Content-Type', 'application/json') - return json.dumps(postdict) + web.header('Access-Control-Allow-Origin', '*') # helps with browser/script access + return web.jsonify(postdict) else: for t in trusted: trusted=loadjson('r/trusted/'+session.user+'/'+t)