mirror of
https://github.com/urbit/shrub.git
synced 2025-01-08 14:09:29 +03:00
Merge pull request #731 from joshuareagan/patch-1
Fora Posts and Comments with no text ignored
This commit is contained in:
commit
79cb59e94a
@ -44,6 +44,13 @@
|
||||
|= {pax/path sup/spur hed/@t txt/@t}
|
||||
^- (quip move _+>)
|
||||
:_ +>
|
||||
::
|
||||
:: if txt is blank then return no moves.
|
||||
::
|
||||
?: ?=(^ (rush txt spac:de-json:html)) ~
|
||||
::
|
||||
:: otherwise, post the content.
|
||||
::
|
||||
:~ %- act
|
||||
:+ %phrase [[our.bol %fora-posts] ~ ~]
|
||||
:_ ~
|
||||
@ -67,6 +74,13 @@
|
||||
|= {pax/path sup/spur txt/@t}
|
||||
^- (quip move _+>)
|
||||
:_ +>
|
||||
::
|
||||
:: if txt is blank then return no moves.
|
||||
::
|
||||
?: ?=(^ (rush txt spac:de-json:html)) ~
|
||||
::
|
||||
:: otherwise, post the content.
|
||||
::
|
||||
:~ ^- move
|
||||
%- act
|
||||
:+ %phrase [[our.bol %fora-comments] ~ ~]
|
||||
|
Loading…
Reference in New Issue
Block a user