Differences From
Artifact [c0b864229b]:
26 26 render_tweet_page(
27 27 co: &lib.srv.convo,
28 28 path: lib.mem.ptr(pref),
29 29 p: &lib.store.post
30 30 ): {}
31 31 var livetime = co.srv:thread_latest_arrival_calc(p.id)
32 32
33 - var pg: lib.str.acc pg:init(256)
33 + var pg = co:stra(256)
34 34 pg:lpush('<div data-live="10">') -- make the OP refresh too
35 35 lib.render.tweet(co, p, &pg)
36 36 pg:lpush('</div>')
37 37
38 38 if co.aid ~= 0 then
39 39 pg:lpush('<form class="action-bar" method="post">')
40 40 if not co.srv:post_liked_uid(co.who.id, p.id)
................................................................................
58 58 render_tweet_replies(co, &pg, p.id)
59 59 pg:lpush('</div>')
60 60
61 61 if co.aid ~= 0 and co.who.rights.powers.post() then
62 62 lib.render.compose(co, nil, &pg)
63 63 end
64 64
65 - var ppg = pg:finalize() defer ppg:free()
65 + var ppg = pg:finalize() --defer ppg:free()
66 66 co:livepage([lib.srv.convo.page] {
67 67 title = lib.str.plit 'post'; cache = false;
68 68 class = lib.str.plit 'post'; body = ppg;
69 69 }, livetime)
70 70
71 71 -- TODO display conversation
72 72 -- perhaps display descendant nodes here, and have a link to the top of the whole tree?
73 73 end
74 74
75 75 return render_tweet_page