Quiet Edits for Flarum

MIT license Latest Stable Version Total Downloads

As I promised in Kylo, this is a preparation for next version of my Diff extension. I'm not sure if I picked the right title for this extension 🤔. Anyways, edits made within the grace period immediately after posting will not be considered as formal edits. You can also ignore whitespace and case differences independently from the grace period.

  • And again, it's based on @jfcherng's diff repository.
  • It raises new events for developers, called PostWasRevisedQuietly & PostWasRevisedLoudly

Settings

Requirements

php ext-iconv

You can check your php version by running php -v and check if iconv is installed by running php --ri iconv (which should display iconv support => enabled).

Installation

composer require the-turk/flarum-quiet-edits

Updating

composer update the-turk/flarum-quiet-edits
php flarum cache:clear

Usage

Enable the extension. The grace period is 120 seconds, whitespace and case differences will be ignored by default.

Links

7 days later

0.1.1

  • Add beta 12 compatibility.
  • Fix previous edit times were not taken into account.
  • Fix zero seconds was not working as grace period.
  • Fix new events was not firing.
  • Update diff repository to 6.5.1
2 months later

I need this for sure. I’m always making typos and submitting my posts too fast then I immediately have to edit.

6 days later

Will the notification email not be resent within the deadline?

  • Kylo replied to this.

    Kylo Sorry, It seems my misjudgment. Within the time limit, email won't be re-sent to the followers every edits.

    • Kylo replied to this.

      wloot If you're asking for the-turk/flarum-edit-notifications, it hasn't been integrated with this extension yet.

      6 months later

      All these extensions I didn't know existed til I see a reply bubble them to the top! Thanks for this extension and also for the PR matteocontrini

      2 months later
      5 months later
      9 months later

      I have a little bug with this extension: when it's enabled, and that I edit a message, i always have this error message the first time I click on "sent" :

      (translation would be : "An error occured. Refresh the page then try again")

      When I click on the "Sent" button a second time (without refreshing the page), it works.

      I have deactivated everything else to test (other extension javascript in header and footer), so this extension seems to be the cause.

        TB54 there should be a more detailed error message, either in the Flarum log file at <flarum>/storage/logs (if it's a PHP error)

        Or in the browser development tool's javascript console (if it's a javascript error).

        You could also enable debug in config.php temporarily. If it is indeed a PHP error, a "details" button will appear in the error popup to see more details right from the web.

        If the message is not posted 2 times, there's a good change it might be a javascript error which would only be visible from the javascript console of the browser.

        • TB54 replied to this.

          clarkwinkelmann Ok i'm sorry, I don't know what's hapenning, but I have no errors anymore... Earlier, when i activated/deactivated the extension several time (after having deactivated all the rest), it resulted in error/no error every time.

          I don't know what changed, i keep you updated if it comes back. Sorry for the inconvenience ☹️

          clarkwinkelmann The error is back again but I'm a little lost: how I can get error logs from freeflarum? I see that nowhere in the menus.

          • Kylo replied to this.