Library spamspan.js is not being added for a filtered text

Created on 15 September 2017, almost 7 years ago
Updated 10 July 2023, 12 months ago

Thank you very much for this module and the D8 port.

We wondered that spamspan did not work as text filter. The markup was replaced correctly but the JavaScript was never attached.

I think the reason is the following, but I'm not sure:

In FilterSpamspan.php, Line 163 you can find the following if condition within the process() function:

    if ($this->textAltered) {
      $result->addAttachments([
        'library' => [
          'spamspan/obfuscate',
        ],
      ]);
...

This is called once (TRUE) in my case for the one correct replacement. But the library is not being added somehow... If I remove the if around so that it's called several times, the library is being added.

I have no clue....

Could the original maintainer have a short look perhaps?

Thank you very much!

πŸ› Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024