Differences From
Artifact [2afba48373]:
23 23 to_idx = 64;
24 24 })
25 25 elseif mode == modes.fediglobal then
26 26 elseif mode == modes.circle then
27 27 end
28 28
29 29 var acc: lib.str.acc acc:init(1024)
30 + acc:lpush('<div id="tl" data-live="10">')
31 + var newest: lib.store.timepoint = 0
30 32 for i = 0, posts.sz do
31 33 lib.render.tweet(co, posts(i).ptr, &acc)
34 + var t = lib.math.biggest(lib.math.biggest(posts(i).ptr.posted, posts(i).ptr.discovered),posts(i).ptr.edited)
35 + if t > newest then newest = t end
32 36 posts(i):free()
33 37 end
34 38 posts:free()
39 + acc:lpush('</div>')
35 40
36 41 var doc = [lib.srv.convo.page] {
37 42 title = lib.str.plit'timeline';
38 43 body = acc:finalize();
39 44 class = lib.str.plit'timeline';
40 45 cache = false;
41 46 }
42 - co:stdpage(doc)
47 + co:livepage(doc,newest)
43 48 doc.body:free()
44 49 end
45 50 return render_timeline