I am on 1.0.4 and was writing my first big post since the upgrade, and it looks like I somehow broke FOF drafts.

I went to edit an article that save last night, and when I opened it the save spinner is just spinning....and never stops.

It doesn't save either... Not sure what going on because it worked well yesterday.

More Testing:

I noticed when I open it its fine until it tries to save for the first time.

I started a new post and that one has no issue saving.

Even more updates:

I should Have checked here first but I got a bunch of errors in my sentry account from this:

TypeError: Cannot read property 'length' of undefined
  at equalRelationships(webpack://@fof/drafts/./src/forum/index.js:81:97)
  at changed(webpack://@fof/drafts/./src/forum/index.js:100:22)
  at apply(webpack://@fof/drafts/./src/forum/index.js:197:18)
  at preventExit(webpack://@flarum/core/./src/common/extend.js:78:24)
  at call(webpack://@flarum/core/./src/forum/states/ComposerState.js:111:14)
  at $.handleEvent(webpack://@flarum/core/./node_modules/mithril/render/render.js:888:55)
2 months later

Could just be my forum being weird, but after the 1.1 update, I had to adjust the draft icon in the top menu. It was suddenly a little lower than the other icons. All I changed was vertical-align from "middle", to "top." It doesn't seem to hurt anything else and re-aligns the draft icon.

Again, probably just my forum. Maybe another extension conflicting. Anyway, just leaving this here in case it helps someone.

@media (min-width: 768px) {
.Header-controls, .Header-controls>li {
vertical-align: top;
}}
4 months later

in this forum, we a have very fast autosave for the answer.
How can i active the auto-save?

    basti4k That should be configurable in the admin panel for the extension, and individually for each user in their settings.

      8 days later

      Hello,

      Interesting in Fof Drafts but...
      ¿need a lot of resources in the server to working well?
      ¿create big tables in DB?

      I want to have my flarum very light with only essencials extensions to not have many problems and because stay now in shared hosting.

        Walys performance and storage is mostly proportional to how many active users your website has.

        The worst in this extension might be if many users use autosave with a short delay and you have large number of users writing posts at the same time. But if you reach that point, your website is probably popular enough to justify upgrading to a better hosting. With the default settings (autosave isn't enabled by default I believe) it'll take very long to reach a noticeable performance impact.

          clarkwinkelmann Thanks for reply Clark! Very good explain!
          mmm... yes, you are right!. Testing with freeflarum and this extension and autosave is not enabled in the user profiles. Need to do manual.

          In my case no need the autosave option, I only need this extension to draft a large messages.

          Only a tip:
          Maybe possible in next updates... add a option in the admin panel to delete the autosave button for all users profiles? To avoid the possibility to activate the autosave per user.

            askvortsov ah i found this setting in the user-config. Thanks!

            Walys Only a tip:
            Maybe possible in next updates... add a option in the admin panel to delete the autosave button for all users profiles? To avoid the possibility to activate the autosave per user.

            yes, this is a good idea

            Hello, sir:
            Thanks for ur fantastic extensions
            but there are some problem on safari of ios devices.
            when I want to schedule my draft, there sounds to be a front-end problem and turns out with the alert 'invalid date'
            Sounds like JavaScript on safari can only read the timestamp as"YYYY/MM/DD', so there needs some conversion.
            Hope the problem can be solved, thanks again.

              25 days later

              IanM in drafts-publish.log there are some errors;

              PHP Notice:  Undefined index: id in /var/www/html/vendor/fof/drafts/src/Console/PublishDrafts.php on line 67
              
              In Builder.php line 527:
                                                                            
                No query results for model [Flarum\Discussion\Discussion].  
                                                                            
              
              drafts:publish
              • IanM replied to this.

                IanM and sometime it's saying these in log file but nothing publishing;

                Starting...
                Starting...
                Starting...
                Starting...
                Starting...

                1.1.1

                Updating
                composer require fof/drafts:"*"
                php flarum cache:clear