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