Bug: index out of range for tags

I'm not going to create yet another account to report bugs elsewhere.

Bug: an "index out of range" error when posting a post.

https://imgur.com/rXLraBu

How to repeat:

  • make a post
  • finish the "tags" list with a comma instead of the last tag: tag1, tag2, tag3,

Recommended fix:

  • before the form is submitted, trim white space and remove comma if , is the last character
6 points · 2 comments · view on lemmy.world

2 Comments

andrew_s@piefed.social · 2 pts · 1y (1 reply)

Ah, okay. Thanks. Tags are already trimmed for whitespace, but I'll do what you recommend, and also check for a trailing comma.

EDIT: fixed here

rimu@piefed.social · 2 pts · 1y

Cheers!

Fix is deployed.