File render/userpage.t artifact 9774faf032 part of check-in bbfea467bf
-- vim: ft=terra
local terra
render_userpage(co: &lib.srv.convo, actor: &lib.store.actor)
var ti: lib.str.acc
if co.aid ~= 0 and co.who.id == actor.id then
ti:compose('my profile')
else
ti:compose('profile :: ', actor.handle)
end
var pftxt = lib.render.profile(co,actor) defer pftxt:free()
var tiptr = ti:finalize()
co:stdpage([lib.srv.convo.page] {
title = tiptr; body = pftxt;
class = lib.str.plit 'profile';
})
tiptr:free()
end
return render_userpage