Differences From
Artifact [052285d84c]:
3 3 render_userpage(co: &lib.srv.convo, actor: &lib.store.actor)
4 4 var ti: lib.str.acc defer ti:free()
5 5 if co.aid ~= 0 and co.who.id == actor.id then
6 6 ti:compose('my profile')
7 7 else
8 8 ti:compose('profile :: ', actor.handle)
9 9 end
10 - var pftxt = lib.render.profile(actor) defer pftxt:free()
10 + var pftxt = lib.render.profile(co,actor) defer pftxt:free()
11 11
12 12 var doc = data.view.docskel {
13 13 instance = co.srv.cfg.instance.ptr;
14 14 title = ti.buf;
15 15 body = pftxt.ptr;
16 16 class = 'profile';
17 + navlinks = co.navbar.ptr;
17 18 }
18 19
19 20 var hdrs = array(
20 21 lib.http.header { 'Content-Type', 'text/html; charset=UTF-8' }
21 22 )
22 23 doc:send(co.con,200,[lib.mem.ptr(lib.http.header)] {ct = 1, ptr = &hdrs[0]})
23 24 end
24 25
25 26 return render_userpage