ActivityPub Plugin

We’ve been enjoying the plugin, but there’s a bug in the current version between the excerpt maxlength and the link to forum. If the excerpt maxlength hits in the middle of a link, the “Discuss this on our forum” link gets a weird target:

For example:

This gets a final forum link:
https://jcheminf.biomedcentral.com/a%E2%80%A6%3Cbr%3E%3Cbr%3E%3Ca%20href=

I’m not conversant in Ruby, but I’d guess the code to crop the post at maxlength should check to make sure it’s not in the middle of a link before adding the “link to forum” end.

4 Likes