Closed loongmxbt closed 3 years ago
@loongmxbt I think you've to extend also the service file to use your new function. Strapi is supporting auto extensions only for the core files of services, controllers etc. All that is in addition (like this util) is not supported by default.
Just extend the service file and use your updated function. That should work.
I followed up the strapi plugin guide on how to override. I've copied the original functions.js to
/extensions/comments/services/utils/functions.js
, and tried to modifycheckBadWords
function. But nothing changes. Is override only apply to default strapi plugins? How can I overridecheckBadWords
function? Thanks for help!