mirror of
https://github.com/urbit/shrub.git
synced 2024-12-02 08:55:07 +03:00
Back to compiling.
This commit is contained in:
parent
2a10f4dd34
commit
0f23312aec
@ -72,22 +72,22 @@
|
||||
++ poke-json :: client message
|
||||
|= [ost=bone his=ship jon=json]
|
||||
^- [(list move) _+>]
|
||||
:_ +>.$
|
||||
~& [%got-json ost]
|
||||
=+ jop=(need ((of [%tweet sa] [%time sa] ~):jo jon))
|
||||
~& [%got-jop ost]
|
||||
=+ key=-.jop
|
||||
:_ +>.$
|
||||
?+ -.jop !!
|
||||
?- -.jop
|
||||
%tweet
|
||||
~& [%poke-tweet-path /tweet/(scot %ud ost)]
|
||||
|
||||
?=(%tweet key)
|
||||
~& [%tweet-pax /tweet/(scot %ud ost)]
|
||||
:~ [ost %pass /tweet/(scot %ud ost) %e [%them (some (posl jon))]]
|
||||
[ost %give %nice ~]
|
||||
==
|
||||
?: ?=(%time key)
|
||||
~& [%
|
||||
[ost %give %nice ~]
|
||||
!!
|
||||
::
|
||||
%time
|
||||
~& %poke-time
|
||||
[ost %give %nice ~]~
|
||||
==
|
||||
::
|
||||
++ page :: build front page
|
||||
^- manx
|
||||
|
@ -117,7 +117,6 @@
|
||||
%^ gsub '-' '_'
|
||||
%+ reel a
|
||||
|= [p=@t q=@t]
|
||||
(cat 3
|
||||
:(catt '/' p q)
|
||||
:: :: Twitter types
|
||||
++ tid ,@u
|
||||
|
Loading…
Reference in New Issue
Block a user