link-store: always mark our own submission as seen

This commit is contained in:
Fang 2020-02-14 01:55:17 +01:00
parent 102424af40
commit fafe4cf2bd
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -235,12 +235,16 @@
=. by-group (~(put by by-group) path links) =. by-group (~(put by by-group) path links)
:: do generic submission logic :: do generic submission logic
:: ::
=^ cards state =^ submission-cards state
(hear-submission path [our.bowl page]) (hear-submission path [our.bowl page])
:: mark page as seen (because we submitted it ourselves)
::
=^ seen-cards state
(seen-submission path `url)
:: send updates to subscribers :: send updates to subscribers
:: ::
:_ state :_ state
:_ cards :_ (weld submission-cards seen-cards)
:+ %give %fact :+ %give %fact
:+ :~ /local-pages :+ :~ /local-pages
[%local-pages path] [%local-pages path]