piwind / flarum-quiet-edits
Do not mark posts as Edited based on some conditions.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Type:flarum-extension
Requires
- flarum/core: ^1.0.2
- jfcherng/php-diff: ^6.10.0
This package is auto-updated.
Last update: 2025-05-28 11:15:49 UTC
README
这个插件是为了扩展 piwind/flarum-diff 的功能,使得在一定条件下(短间隔时间、仅大小写、仅空格差异)的编辑帖子动作不会产生编辑记录。
About This Fork
就改了个名字,暂时别用。
Features
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 & Updating
Install with composer:
composer require piwind/flarum-quiet-edits
Updating:
composer update piwind/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.