Artifact 9774faf032aa095020858e0b8aebf7b5fd544c47e72f37ae3cd53431b898fe81:
- File render/userpage.t — part of check-in [bbfea467bf] at 2020-12-27 02:31:30 on branch trunk — permissions work now (user: lexi, size: 475) [annotate] [blame] [check-ins using]
-- 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