Differences From
Artifact [00c7b6fd89]:
22 22 var timestr: int8[26] lib.osclock.ctime_r(&p.posted, ×tr[0])
23 23
24 24 var bhtml = lib.smackdown.html([lib.mem.ptr(int8)] {ptr=p.body,ct=0}) defer bhtml:free()
25 25
26 26 var idbuf: int8[lib.math.shorthand.maxlen]
27 27 var idlen = lib.math.shorthand.gen(p.id, idbuf)
28 28 var permalink: lib.str.acc permalink:compose('/post/',{idbuf,idlen})
29 -
29 + var fullname = lib.render.nym(author,0) defer fullname:free()
30 30 var tpl = data.view.tweet {
31 31 text = bhtml;
32 32 subject = cs(lib.coalesce(p.subject,''));
33 - nym = cs(lib.coalesce(author.nym, author.handle));
34 - xid = cs(author.xid);
33 + nym = fullname;
35 34 when = cs(×tr[0]);
36 35 avatar = cs(lib.trn(author.origin == 0, avistr.buf,
37 36 lib.coalesce(author.avatar, '/s/default-avatar.webp')));
38 37 acctlink = cs(author.xid);
39 38 permalink = permalink:finalize();
40 39 }
41 40 defer tpl.permalink:free()
42 41 if acc ~= nil then tpl:append(acc) return [lib.mem.ptr(int8)]{ptr=nil,ct=0} end
43 42 var txt = tpl:tostr()
44 43 return txt
45 44 end
46 45 return render_tweet