parsav  Diff

Differences From Artifact [849244d87f]:

To Artifact [f79f7a1ea9]:


    32     32   
    33     33   	var strfbuf: int8[28*4]
    34     34   	var stats = co.srv:actor_stats(actor.id)
    35     35   		var sn_posts     = cs(lib.math.decstr_friendly(stats.posts, &strfbuf[ [strfbuf.type.N - 1] ]))
    36     36   		var sn_follows   = cs(lib.math.decstr_friendly(stats.follows, sn_posts.ptr - 1))
    37     37   		var sn_followers = cs(lib.math.decstr_friendly(stats.followers, sn_follows.ptr - 1))
    38     38   		var sn_mutuals   = cs(lib.math.decstr_friendly(stats.mutuals, sn_followers.ptr - 1))
    39         -	var bio = lib.str.plit '<em style="opacity:0.6">tall, dark, and mysterious</em>'
           39  +	var bio = pstr '<em style="opacity:0.6">tall, dark, and mysterious</em>'
    40     40   	if actor.bio ~= nil then
    41     41   		bio = lib.smackdown.html(&co.srv.pool,cs(actor.bio),false)
    42     42   	end
    43     43   	var fullname = lib.render.nym(actor,0,nil,false) defer fullname:free()
    44     44   	var comments = co:stra(64)
    45     45   
    46     46   	if co.srv.cfg.master == actor.id then
    47         -		var foundertxt = lib.str.plit 'founder'
           47  +		var foundertxt = pstr 'founder'
    48     48   		if co.srv.cfg.ui_cue_founder:ref() then
    49     49   			if co.srv.cfg.ui_cue_founder.ct == 0 -- empty string, suppress field
    50     50   				then foundertxt = pstr.null()
    51     51   				else foundertxt = co.srv.cfg.ui_cue_founder
    52     52   			end
    53     53   		end
    54     54   
    55     55   		if foundertxt:ref() then
    56     56   			comments:lpush('<li style="--co:-70">'):ppush(foundertxt):lpush('</li>')
    57     57   		end
    58     58   	end
    59     59   	if co.aid ~= 0 and actor.rights.rank ~= 0 then
    60         -		var stafftxt = lib.str.plit 'site staff'
           60  +		var stafftxt = pstr 'site staff'
    61     61   		if co.srv.cfg.ui_cue_staff:ref() then
    62     62   			if co.srv.cfg.ui_cue_staff.ct == 0 -- empty string, suppress field
    63     63   				then stafftxt = pstr.null()
    64     64   				else stafftxt = co.srv.cfg.ui_cue_staff
    65     65   			end
    66     66   		end
    67     67   
................................................................................
    88     88   		bio = bio;
    89     89   		xid = cs(actor.xid);
    90     90   		avatar = cs(actor.avatar);
    91     91   
    92     92   		nposts = sn_posts, nfollows = sn_follows;
    93     93   		nfollowers = sn_followers, nmutuals = sn_mutuals;
    94     94   		tweetday = cs(timestr);
    95         -		timephrase = lib.trn(actor.origin == 0, lib.str.plit'joined', lib.str.plit'known since');
           95  +		timephrase = lib.trn(actor.origin == 0, pstr 'joined', pstr 'known since');
    96     96   
    97     97   		remarks = '';
    98     98   
    99     99   		auxbtn = auxp;
   100    100   	}
   101    101   	if comments.sz > 0 then profile.remarks = comments:finalize() end
   102    102