Differences From
Artifact [89c9cb6c12]:
16 16 if meth == method.post then
17 17 var act = co:ppostv('act')
18 18 if rel.recip.block() then
19 19 if act:cmp('follow') or act:cmp('subscribe') then
20 20 co:complain(403,'blocked','you cannot follow a user you are blocked by') return
21 21 end
22 22 end
23 - if act:cmp('block') and not rel.rel.block() then
23 + if act:cmp('circle') then
24 + lib.dbg('encircling user!')
25 + var iter = co:eachpostv('circle')
26 + for cid in iter do
27 +
28 + end
29 + elseif act:cmp('block') and not rel.rel.block() then
24 30 rel.rel.block = true rel.recip.follow = false
25 31 co.srv:actor_rel_create([lib.store.relation.idvmap.block], co.who.id, actor.id)
26 32 co.srv:actor_rel_destroy([lib.store.relation.idvmap.follow], actor.id, co.who.id)
27 33 elseif not act:cmp('report') then
28 34 [(function()
29 35 local tests = quote co:complain(400,'bad request','the action you have attempted on this user is not meaningful') return end
30 36 for i,v in ipairs(lib.store.relation.members) do