fakruzaruret Draft is not deleted from draft list when I create discussion. Extension continue to sace draft although I click to start discussion

I'm not able to reproduce either of these. Are you sure you're on the correct version?

fakruzaruret Also it does not save tags which I selected.

This I AM able to reproduce, I'll look into it. Thanks!

    askvortsov I use fof/drafts version 0.1.9. This happaned more than once. Draft is not deleted if you click start discussion button while autosaving process. Or it happens when you click start discussion 0.5-1 second before auto-saving.

    Edit: I have tested why it is cause. And I found bug for my forum. Draft extension create auto draft without title (gets all content of entry) if you edit you first entry. I create an issue on github

    "You do not have permission to do that." error pops up when I try to start a thread from a tag page.

      Hey !
      Is there something planed to set default preferences for all users with admin (enable or not autosave, interval) ? Would be amazing

        I've opened another PR to resolve some of these issues.

        Geraldlzc Planned feature release later, no response.

        I'm not sure what you mean here, could you elaborate?

        sakibarifin "You do not have permission to do that." error pops up when I try to start a thread from a tag page.

        Hi! I'm having trouble replicating this. Which version of drafts are you using? Does the account have permissions to save drafts? Could you use inspect element to find exactly which network request is causing the 403 permission denied error?

        ornanovitch Is there something planed to set default preferences for all users with admin (enable or not autosave, interval) ? Would be amazing

        It's not something I was planning to implement, but I agree it would be nice.

          This extension is in another level now and it is on my top three list thanks to @askvortsov. I don't know how do you pick developers for the FoF but he definitely IS a friend of flarum. Take this as a vote from me 💯

            Kylo This extension is in another level now and it is on my top three list thanks to @askvortsov. I don't know how do you pick developers for the FoF but he definitely IS a friend of flarum. Take this as a vote from me 💯

            I appreciate that, thanks! I've lost way too many quality posts due to my browser derping out on me unexpectedly, so a quality drafts extension is good. As to FoF membership, there's already enough overlap between the FoF team and the core team, plus I already have a lot of commitments. Not being a member doesn't impede my ability to contribute to extensions (like I've done with drafts), and frees up a spot for other dedicated developers.

            0.1.10

            • Don't autosave if loading (just submitted)
            • Fix bug when draft has empty relationships
            • Fix relationships sometimes not being properly loaded
            • Clear autosave interval on hide, not on close, so that if composer is closed via posted discussion, autosave is still cleared (Fixes #28)
            • Option to use oneOneServer() in conjunction with the scheduler (needed in scaled environments, requires Redis)
            • Option to enable/disable logfile output

            Updating

            composer require fof/drafts:^0.1.10
            php flarum cache:clear

            Thank you @askvortsov for your continued contributions to this extension!

              askvortsov In console the error says "Failed to load resource: the server responded with a status of 403 ()" /api/drafts/5:1

                sakibarifin which version of drafts are you using? What permissions does the user have? Can you try clearing your browser cache? Does this happen for multiple users?

                  askvortsov I updated to the latest version. The problem appears to be with the autosave. The account is the admin. {"errors":[{"status":"405","code":"method_not_allowed"}]}

                  DursunCan You'd need to have your Flarum instance configured to use Redis, using something like bokt/flarum-redis

                  I got the response error and anyone same?
                  error

                  You're gonna need to provide a bit more context for us to be able to fix this: when does this error pop up? What kind of users does it affect? What other background info could be relevant here?

                    askvortsov
                    Thank you for replying!
                    I answer to your question.

                    when does this error pop up?

                    when anyone opens post menu, I mean input

                    What kind of users does it affect?

                    Everyone

                    What other background info could be relevant here?

                    I don't know the background, there's no information except this

                      RikuS3n There should be an error in the log file @ storage/logs/flarum-<date>.log.