Posts and Comments with no text ignored

In response to ~ravmel's issue here: https://github.com/urbit/fora/issues/6

With this change if you try to submit a post or comment without text, then the poke is ignored.  Yes, this is a really dumb fix, but it works and fora is minimalist anyway.  Only downside is there is no explicit feedback to the poster.  If someone wants to hold my hand a little I'll try to make a more fancy change.
This commit is contained in:
Joshua Reagan 2018-05-08 23:07:29 -05:00 committed by GitHub
parent 3ec660df95
commit 3c1abdd3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@
|= {pax/path sup/spur hed/@t txt/@t}
^- (quip move _+>)
:_ +>
?: =(txt '') ~
:~ %- act
:+ %phrase [[our.bol %fora-posts] ~ ~]
:_ ~
@ -67,6 +68,7 @@
|= {pax/path sup/spur txt/@t}
^- (quip move _+>)
:_ +>
?: =(txt '') ~
:~ ^- move
%- act
:+ %phrase [[our.bol %fora-comments] ~ ~]