193
194
195
196
197
198
199
200
201
202
203
204
205
206
...
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
if relationship.rel.block() then
comments:lpush('<li style="--co:80">blocked</li>')
end
if relationship.recip.follow() then
comments:lpush('<li style="--co:30">follows you</li>')
end
var profile = data.view.profile {
nym = fullname;
bio = bio;
xid = cs(actor.xid);
avatar = cs(actor.avatar);
................................................................................
nfollowers = sn_followers, nmutuals = sn_mutuals;
tweetday = cs(timestr);
timephrase = lib.trn(actor.origin == 0, pstr 'joined', pstr 'known since');
remarks = '';
auxbtn = auxp;
relations = relbtns:finalize();
sanctions = sancbtns:finalize();
}
if comments.sz > 0 then profile.remarks = comments:finalize() end
var ret = profile:poolstr(&co.srv.pool)
-- auxp:free()
--if actor.bio ~= nil then bio:free() end
--if comments.sz > 0 then profile.remarks:free() end
return ret
end
return render_profile
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
...
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
if relationship.rel.block() then
comments:lpush('<li style="--co:80">blocked</li>')
end
if relationship.recip.follow() then
comments:lpush('<li style="--co:30">follows you</li>')
end
var circpanel = co:stra(128)
var allcircs = co.srv:circle_search(&co.srv.pool, co.who.id, 0)
if allcircs:ref() then
var mycircs = co.srv:circle_memberships_uid(&co.srv.pool, co.who.id, actor.id)
for i=0, allcircs.ct do
circpanel:lpush '<label><input type="checkbox" name="circle" value="'
:shpush(allcircs(i).cid)
:lpush '"> '
:ppush(allcircs(i).name)
:lpush '</label>'
end
end
var profile = data.view.profile {
nym = fullname;
bio = bio;
xid = cs(actor.xid);
avatar = cs(actor.avatar);
................................................................................
nfollowers = sn_followers, nmutuals = sn_mutuals;
tweetday = cs(timestr);
timephrase = lib.trn(actor.origin == 0, pstr 'joined', pstr 'known since');
remarks = '';
auxbtn = auxp;
circles = circpanel:finalize();
relations = relbtns:finalize();
sanctions = sancbtns:finalize();
}
if comments.sz > 0 then profile.remarks = comments:finalize() end
var ret = profile:poolstr(&co.srv.pool)
-- auxp:free()
--if actor.bio ~= nil then bio:free() end
--if comments.sz > 0 then profile.remarks:free() end
return ret
end
return render_profile
|