askvortsov I've hidden your previous post since it contains quite an egregious data leak. For future reference, you should NEVER share any database contents outside of the absolute minimum required, and ensure you personally look through all data being shared to avoid issues. I'd strongly recommend that you immediately restrict access to that link, reset passwords for any of your users, completely clear out the access tokens and api keys tables (as well as password reset tokens and email confirmation tokens), and notify users of a potential email leak.
Back to the issue. Root vs subdirectory will not matter here. The issue seems to be that the number_index
field in some discussions is out of sync with reality. You should ensure that it is always greater than the last_post_number
field. If you install https://extiverse.com/extension/migratetoflarum/recalculate-meta and run the associated command, that might clean stuff up.