mirror of
https://github.com/urbit/shrub.git
synced 2025-01-07 05:26:56 +03:00
Merge pull request #578 from urbit/hall-circles-fix
Fixed weird code for updating /circles subscriptions.
This commit is contained in:
commit
34edaee927
@ -2323,17 +2323,27 @@
|
|||||||
::REVIEW this could be considered leaky, since it
|
::REVIEW this could be considered leaky, since it
|
||||||
:: doesn't check if {who} ever knew of {nom},
|
:: doesn't check if {who} ever knew of {nom},
|
||||||
:: but does that matter? can't really check..
|
:: but does that matter? can't really check..
|
||||||
|
:: if the story got deleted, remove it from the circles listing.
|
||||||
?: ?=($remove -.det.det) `|
|
?: ?=($remove -.det.det) `|
|
||||||
=+ soy=(~(got by stories) who.qer)
|
=+ soy=(~(got by stories) nom.det)
|
||||||
?. ?| ?=($new -.det.det)
|
:: if the story got created, or something about the read permissions set
|
||||||
?& ?=($config -.det.det)
|
:: for the subscriber changed, update the circles listing.
|
||||||
?=($permit -.dif.det.det)
|
=; dif/?
|
||||||
?=(?($channel $village) sec.con.shape.soy)
|
?. dif ~
|
||||||
(~(has in sis.dif.det.det) who.qer)
|
:: if the story just got created, don't send a remove rumor, because it
|
||||||
==
|
:: never showed up in the first place.
|
||||||
|
=- ?:(&(?=($new -.det.det) !-) ~ `-)
|
||||||
|
?| (team:title our.bol who.qer)
|
||||||
|
(~(so-visible so:ta nom.det ~ soy) who.qer)
|
||||||
|
==
|
||||||
|
?| ?=($new -.det.det)
|
||||||
|
::
|
||||||
|
?& ?=($config -.det.det)
|
||||||
|
?=($permit -.dif.det.det)
|
||||||
|
?=(?($channel $village) sec.con.shape.soy)
|
||||||
|
(~(has in sis.dif.det.det) who.qer)
|
||||||
==
|
==
|
||||||
~
|
==
|
||||||
`(~(so-visible so:ta nom.det ~ soy) who.qer)
|
|
||||||
::
|
::
|
||||||
$public
|
$public
|
||||||
?. ?=($public -.det) ~
|
?. ?=($public -.det) ~
|
||||||
|
Loading…
Reference in New Issue
Block a user