mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
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:
parent
3ec660df95
commit
3c1abdd3df
@ -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] ~ ~]
|
||||
|
Loading…
Reference in New Issue
Block a user