0.1.1
Console log (used for debug) removed.
Updating
composer update justoverclock/flarum-ext-purify:"*"
php flarum cache:clear
Console log (used for debug) removed.
composer update justoverclock/flarum-ext-purify:"*"
php flarum cache:clear
Very nice work.
The video however is giving a
" Secure connection failed " error in the original post.
Secure Connection Failed
An error occurred during a connection to streamable.com. PR_CONNECT_RESET_ERROR
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the web site owners to inform them of this problem.
meetdilip thanks...but i can see the video correctly...idk why this happen
It is now visible to me as well. Not sure why it was different before.
meetdilip Same here and sometimes error connection refused to connect.
Justoverclock Is there any list that is pre made or all the words are entered by admin only as sometimes what happens, If user is using different language then what's the possible way to get rid of them.
1Dot you can add word through admin panel
For the video I think is related to streamable website, but not happen to me
Justoverclock I updated the extension to 0.1.1, but it looks like the bad word array is still included in the page source.
ht_miel yes i will find a solution in the next release
#Changes
composer update justoverclock/flarum-ext-purify:"*"
php flarum cache:clear
@Justoverclock an idea here would be to extend this further so that custom REGEX is supported. This is VERY useful in automatically redacting things like email addresses, which under the GDPR, should not appear on public forums without permission. Users have a habit of leaving information like this in the open, and this extension could well fix that.
I know @IanM did something similar before with an extension which was originally open source, but is now considered private and no longer available publicly.
[deleted] so u mean something that obscure email? sure i can implement this also in this extension
or u want a field to put your custom regex from backend?
Justoverclock Both
[deleted] this is a nice feauture, i will work on this
composer update justoverclock/flarum-ext-purify:"*"
php flarum cache:clear
not sure how can i implement a custom regex field, because i need to decide the function that regexp must have, so i need to replace what/with what?
Great! I have to make a choice between fof/filter and this one.
@[deleted] currently i've done a custom regexp field
as u can see in the example anyone can write your own regexp without including the initial /
and flags (that actually match every words in both upper and lowercase
in the example above the output is:
/(marco|flarum|extension)/gi
(that match these 3 words).
so u can replace that part with your own regexp (marco|flarum|extension)
Do you think this can be an acceptable solution?
regexp is replaced with [Purified]
that is completely customizable with translations (like ******, [hidden])
#Changes
composer update justoverclock/flarum-ext-purify:"*"
php flarum cache:clear
OneQUICKSuggestion : Is it possible to auto flag and hold post for approval when post contains that words.
1Dot not planned at moment
A crazy idea to extend
Replace words.
Example:
When the user types: You are a idiot person
This extension replace to: You are a good person.