Deleting a post results in this error message

  • some_guy@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    5 days ago

    If you tap the error, it’ll show you more info. I’m banned from a community, prolly for angry posts about the Palestinian genocide last year. That’s how I figured out the ban. My previous client (Memmy) never built out support to show errors for bans before sunsetting.

    Cheers fellow Artic user.

      • CreatureSurvive@lemmy.worldM
        link
        fedilink
        arrow-up
        2
        ·
        3 days ago

        Alright, I have this fixed now. Deleted posts will show a badge in the UI. The delete action will now act as a toggle to delete or restore the post.

      • CreatureSurvive@lemmy.worldM
        link
        fedilink
        arrow-up
        2
        ·
        3 days ago

        Alright, I’ve figured out the issue here. When a post is deleted, it still appears for the original poster. So, the first time you deleted the post, it worked, but the second time, an error message is displayed, essentially stating that you can’t delete a post twice.

        To resolve this, I need to update the UI to show that the post was successfully deleted and disable the delete action for already deleted posts.