the-turk / flarum-quiet-edits
Do not mark posts as Edited based on some conditions.
Installs: 618
Dependents: 0
Suggesters: 2
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 5
Type:flarum-extension
Requires
- flarum/core: ^1.0.2
- jfcherng/php-diff: ^6.10.0
This package is auto-updated.
Last update: 2024-12-04 09:47:23 UTC
README
As I promised in @"Kylo"#p121339, 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
Requirements
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.