parsav  Diff

Differences From Artifact [d4b538d774]:

To Artifact [b87f9f8b97]:


     1      1   -- vim: ft=terra
     2      2   local terra 
     3      3   render_userpage(
     4      4   	co          : &lib.srv.convo,
     5      5   	actor       : &lib.store.actor,
     6      6   	relationship: &lib.store.relationship
     7      7   ): {}
     8         -	var ti: lib.str.acc 
            8  +	var ti: lib.str.t
     9      9   	if co.aid ~= 0 and co.who.id == actor.id then
    10         -		ti:compose('my profile')
           10  +		ti = 'my profile'
    11     11   	else
    12         -		ti:compose('profile :: ', actor.handle)
           12  +		ti = co:qstr('profile :: ', actor.handle)
    13     13   	end
    14         -	var tiptr = ti:finalize()
    15     14   
    16     15   	var acc: lib.str.acc acc:pool(&co.srv.pool, 1024)
    17     16   	var pftxt = lib.render.profile(co,actor,relationship) --defer pftxt:free()
    18     17   	acc:ppush(pftxt)
    19     18   
    20     19   	var stoptime = lib.osclock.time(nil)
    21     20   	var posts = co.srv:post_enum_author_uid(actor.id, lib.store.range {
................................................................................
    33     32   		posts(i):free()
    34     33   	end
    35     34   	posts:free()
    36     35   	acc:lpush('</div>')
    37     36   
    38     37   	var bdf = acc:finalize()
    39     38   	co:livepage([lib.srv.convo.page] {
    40         -		title = tiptr; body = bdf;
           39  +		title = ti; body = bdf;
    41     40   		class = 'profile';
    42     41   		cache = false;
    43     42   	}, newest)
    44     43   
    45         -	tiptr:free()
           44  +	--tiptr:free()
    46     45   	--bdf:free()
    47     46   end
    48     47   
    49     48   return render_userpage