plebbit / seedit

A GUI for plebbit similar to old.reddit
https://seedit.eth.limo/#/
GNU General Public License v2.0
11 stars 2 forks source link

fix search bar allows to connect to a sub address without a tld #349

Closed plebeius-eth closed 4 months ago

plebeius-eth commented 4 months ago

it should check if the address is either a valid IPNS public key or contains a dot (for the tld), and no spaces or slashes

plebeius-eth commented 4 months ago

f4798f304c52572495dc64d8ce7d495b676e170f

estebanabaroa commented 4 months ago

you should not validate the domain, plebbit-js already validates it. otherwise you'll have to change the validate code any time we add a new domain or new key

displaying the useSubplebbit().error should be enough to tell the user what to do

plebeius-eth commented 4 months ago

a40442d785eed15563dd9865e5bdd1720d80aee8

removed the validation checks and displaying the error message

Image