FriendsOfFlarum Filter
Any chance to have this updated for beta8?
Hi, my flarum was not work ,when i install this filter~
The install output like this:
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
Using version 1.2 for issyrocks12/flarum-ext-filter
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Installing flarum/flarum-ext-flags (v0.1.0-beta.8.1): Loading from cache
- Installing flarum/flarum-ext-approval (v0.1.0-beta.8): Loading from cache
- Installing issyrocks12/flarum-ext-filter (1.2.2): Loading from cache
Package flarum/flarum-ext-flags is abandoned, you should avoid using it. Use flarum/flags instead.
Package flarum/flarum-ext-approval is abandoned, you should avoid using it. Use flarum/approval instead.
Writing lock file
Generating autoload files
The Browser show me this:
Error booting Flarum: Class Flarum\Core\Repository\PostRepository does not exist
And the flarum logs like this:
[2019-05-11 03:05:22] production.ERROR: Flarum\User\Exception\PermissionDeniedException in /www/wwwroot/flarum/vendor/flarum/core/src/User/AssertPermissionTrait.php:25
Stack trace:
#0 /www/wwwroot/flarum/vendor/flarum/core/src/User/AssertPermissionTrait.php(37): Flarum\Admin\Middleware\RequireAdministrateAbility->assertPermission(false)
#1 /www/wwwroot/flarum/vendor/flarum/core/src/User/AssertPermissionTrait.php(64): Flarum\Admin\Middleware\RequireAdministrateAbility->assertCan(Object(Flarum\User\Guest), 'administrate')
#2 /www/wwwroot/flarum/vendor/flarum/core/src/Admin/Middleware/RequireAdministrateAbility.php(26): Flarum\Admin\Middleware\RequireAdministrateAbility->assertAdmin(Object(Flarum\User\Guest))
#3 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Admin\Middleware\RequireAdministrateAbility->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#4 /www/wwwroot/flarum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#5 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\SetLocale->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#6 /www/wwwroot/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(34): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#7 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\AuthenticateWithSession->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#8 /www/wwwroot/flarum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#9 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\RememberFromCookie->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#10 /www/wwwroot/flarum/vendor/flarum/core/src/Http/Middleware/StartSession.php(62): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#11 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\StartSession->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#12 /www/wwwroot/flarum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(29): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#13 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\ParseJsonBody->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#14 /www/wwwroot/flarum/vendor/flarum/core/src/Http/Middleware/HandleErrorsWithView.php(67): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#15 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\HandleErrorsWithView->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#16 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#17 /www/wwwroot/flarum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Zend\Stratigility\MiddlewarePipe->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#18 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Middlewares\RequestHandler->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#19 /www/wwwroot/flarum/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#20 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Middlewares\BasePathRouter->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#21 /www/wwwroot/flarum/vendor/middlewares/base-path/src/BasePath.php(53): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#22 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/Next.php(52): Middlewares\BasePath->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
#23 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))
#24 /www/wwwroot/flarum/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(72): Zend\Stratigility\MiddlewarePipe->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\EmptyPipelineHandler))
#25 /www/wwwroot/flarum/vendor/zendframework/zend-httphandlerrunner/src/RequestHandlerRunner.php(95): Zend\Stratigility\MiddlewarePipe->handle(Object(Zend\Diactoros\ServerRequest))
#26 /www/wwwroot/flarum/vendor/flarum/core/src/Http/Server.php(46): Zend\HttpHandlerRunner\RequestHandlerRunner->run()
#27 /www/wwwroot/flarum/public/index.php(22): Flarum\Http\Server->listen()
#28 {main}
bbJose extension is incompatible with beta 8
Such a good extension, why not update
clarkwinkelmann Thank, wait on line
[deleted]
Ralkage Any more thought around this ? I have a very chatty user in my forum who unfortunately likes to litter posts with, shall we say, "undesirable" words Having to manually redact at present, but my forum is growing (thanks to Flarum) and performing this manual task is going to become very time consuming !
[deleted]
@Ralkage @datitisev @Kyrne any thoughts on this please ?
Thanks
- Edited
[deleted] somehow missed this in my inbox. A couple of us have discussed and all encompassing "mod tools" extension that would include this extension's features.
This was the first extension I ever made and it's horrendously coded. If we ditch the above idea I will re-write and update it for the latest Flarum version.
[deleted]
Kyrne ok. Thanks
- Edited
Kyrne This was the first extension I ever made and it's horrendously coded. If we ditch the above idea I will re-write and update it for the latest Flarum version.
Would be great to see it happen. I'd be happy to help finance this if needed, I think it's a super important feature that needs to exist.
[deleted]
danielunited same here
[deleted]
danielunited in the meantime, there's https://discuss.flarum.org/d/21784-perspective-api
[deleted] Sadly it doesn't work in Hebrew
- Edited
@danielunited @[deleted] @iosmall @bbJose @matteocontrini @JRay
You guys asked for it, it's finally here.
Filter for Beta 8+
Background and Nostalgia trip:
Filter was the first extension I ever made for Flarum 3 whole years ago. Back then I was still in college and found Flarum when searching for forum software for an unrelated project. Flarum in early 2017 was still in Beta 6 and had a total team size of 4, ReFlar was created yet and Flagrow was just starting out.
Flarum really helped this college boy refind his love for coding and the fact that it can actually be fun outside of a classroom and office desk. Revisiting my extremely old code really showed me how much I've improved in PHP alone in just a few short years. Now in 2020, ReFlar and Flagrow have both joined forces to created FoF, Flarum is at beta 11, and has a team of 11 people!
While I have your attention I want to thank @luceos @datitisev and @Ralkage. These people were instrumental to my Flarum journey and I couldn't have done it without their help and support, thank you, guys!
What's new:
I've been sitting on this update for a while due to being extremely busy at work. I finally got around to fixing the bugs from my personal version but there may be some things still not working so tread carefully!
- Latest Flarum compatibility (duh)
- No need to use Regex anymore, the words you input will automatically be converted to Regex versions with common leetspeak accounted for (Ex: 3 instead of E).
- When posts are flagged it will say they were flagged by the auto-moderator.
- Post auto-merging now works, you can also set the period of time between posts when they will be merged.
- General code cleanup and refactoring