Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicate posts with better error message. #1033

Open
mplorentz opened this issue Dec 14, 2022 · 0 comments
Open

Prevent duplicate posts with better error message. #1033

mplorentz opened this issue Dec 14, 2022 · 0 comments
Labels
design ui Issues that are primarily improving the user interface in a particular area

Comments

@mplorentz
Copy link
Member

I have seen several users go through this flow:

  1. They compose a new post or reply and hit publish
  2. An error message is shown saying something about a SQL error
  3. They don't see their post and their draft isn't cleared so they hit publish again
  4. Eventually two copies of their post shows up
    What is happening here is that writing to the SSB log succeeded but copying the post into our SQLite database failed. In this case the post was essentially published to the SSB world correctly, but the user's local copy of Planetary won't show their post to them (usually only temporally). This is an unfortunate consequence of storing posts in two places. To mitigate this issue we should detect this case and show the user an error message that says something like "There was a problem displaying your post, but it was published successfully" and we should clear the draft.
@mplorentz mplorentz converted this from a draft issue Dec 14, 2022
@mplorentz mplorentz added design ui Issues that are primarily improving the user interface in a particular area labels Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design ui Issues that are primarily improving the user interface in a particular area
Projects
None yet
Development

No branches or pull requests

1 participant