parsav  Diff

Differences From Artifact [8e478d7a95]:

To Artifact [08cdf2fd9f]:


    16     16   	var stoptime = lib.osclock.time(nil)
    17     17   	var posts = co.srv:post_enum_author_uid(actor.id, lib.store.range {
    18     18   		mode = 1; -- T->I
    19     19   		from_time = stoptime;
    20     20   		to_idx = 64;
    21     21   	})
    22     22   
           23  +	acc:lpush('<div id="feed" data-live="10">')
           24  +	var newest: lib.store.timepoint = 0
    23     25   	for i = 0, posts.sz do
    24     26   		lib.render.tweet(co, posts(i).ptr, &acc)
           27  +		var t = lib.math.biggest(lib.math.biggest(posts(i).ptr.posted, posts(i).ptr.discovered),posts(i).ptr.edited)
           28  +		if t > newest then newest = t end
    25     29   		posts(i):free()
    26     30   	end
    27     31   	posts:free()
           32  +	acc:lpush('</div>')
    28     33   
    29     34   	var bdf = acc:finalize()
    30         -	co:stdpage([lib.srv.convo.page] {
           35  +	co:livepage([lib.srv.convo.page] {
    31     36   		title = tiptr; body = bdf;
    32     37   		class = lib.str.plit 'profile';
    33     38   		cache = false;
    34         -	})
           39  +	}, newest)
    35     40   
    36     41   	tiptr:free()
    37     42   	bdf:free()
    38     43   end
    39     44   
    40     45   return render_userpage