Differences From
Artifact [e47888d2bc]:
194 194 comments:lpush('<li style="--co:80">blocked</li>')
195 195 end
196 196
197 197 if relationship.recip.follow() then
198 198 comments:lpush('<li style="--co:30">follows you</li>')
199 199 end
200 200
201 - var circpanel = co:stra(128)
202 - var allcircs = co.srv:circle_search(&co.srv.pool, co.who.id, 0)
203 - if allcircs:ref() then
204 - var mycircs = co.srv:circle_memberships_uid(&co.srv.pool, co.who.id, actor.id)
205 - for i=0, allcircs.ct do
206 - circpanel:lpush '<label><input type="checkbox" name="circle" value="'
207 - :shpush(allcircs(i).cid)
208 - :lpush '"> '
209 - :ppush(allcircs(i).name)
210 - :lpush '</label>'
201 + var circpanel: lib.str.acc
202 + if co.aid ~= 0 then
203 + circpanel = co:stra(128)
204 + var allcircs = co.srv:circle_search(&co.srv.pool, co.who.id, 0)
205 + if allcircs:ref() then
206 + var mycircs = co.srv:circle_memberships_uid(&co.srv.pool, co.who.id, actor.id)
207 + for i=0, allcircs.ct do
208 + circpanel:lpush '<label><input type="checkbox" name="circle" value="'
209 + :shpush(allcircs(i).cid)
210 + :lpush '"'
211 + for j=0, mycircs.ct do
212 + if allcircs(i).cid == mycircs(j).cid then
213 + circpanel:lpush ' checked'
214 + break
215 + end
216 + end
217 + circpanel:lpush '> '
218 + :ppush(allcircs(i).name)
219 + :lpush '</label>'
220 + end
211 221 end
212 222 end
213 223
214 224 var profile = data.view.profile {
215 225 nym = fullname;
216 226 bio = bio;
217 227 xid = cs(actor.xid);