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 subplebbit addresses with emojis are bugged #313

Closed plebeius-eth closed 6 months ago

plebeius-eth commented 6 months ago

this causes a bunch of problems like media not expanding, page header not loading, etc - because the pathname isn't detectable

plebeius-eth commented 6 months ago

ah it's the emoji in the address bugging it, notice also the page header is empty. Probably because the emoji is percent-encoded in the pathname, but i'm comparing it to the subplebbitAddress which has the emoji. Using decodeURIComponent(pathname) fixes it

should be fixed now: 55522854a3c7ec03d100c369bac4822ea2937476