Actually, the issue with downloading images on edited topics with system doesn’t seems to be fully solved. Sorry for not noticing it earlier. For example this one or this one.
As reminder, in our case, it’s an automatic category change (using API).
My client still have topics where PullHotlinkedImages does nothing no matter what:
For example, if you look at the first edit of the topic linked above, You see well the system replacing the images. So, WP-Discourse is likely not an issue.
Perfect, thanks for the detailed summary! I think the problem is here:
I managed to produce a failing test case for this. It seems we only do the URL replacement when the image is first downloaded. If we have already downloaded the image once, it won’t be replaced again.
This is a failing test which demonstrates the issue
I just fastly edited/saved few topics manually which was edited by system and it seems that PullHotlinkedImages is working now. Will try the command line later, but no doubt it will working fine.