This works great, apart from the SQL commands in your how-to, like- Added Discord CDN smart proxy setup
I end up with links likeUPDATE <you_prefix>_posts
SET post_text = REGEXP_REPLACE(post_text,
'https://cdn\\.discordapp\\.com/attachments/([0-9]+)/([0-9]+)/([^.]+)\\.([A-Za-z0-9]+)(\\?ex=)?',
'<your_website_root_url>/ailabs/discord_cdn/cdn.discordapp.com/attachments/\\1/\\2/\\3?ext=\\4&ex=')
WHERE post_text LIKE "%https://cdn.discordapp.com/attachments/%"
Code:
https://www.mywebsite.com/ailabs/discord_cdn/cdn.discordapp.com/attachments/1/2/3?ext=4&ex=660dcd2f&is=65fb582f&hm=e5c7767448adb0846e2edf8862b446aa352f77d6d7a9ea89b493e6fdbd35c8d3&
I get this as an error instead:
Statistics: Posted by nou nou — Tue May 07, 2024 6:22 pm