I thought you’d like to know, I spent the last 8 or 9 hours on this:
It would be drop-in replacement if I was satisfied with leaving a bunch of crap hardcoded. But no, I’m a frackin’ madman and I decided that if I was gonna do this I was gonna do it right and put the gif provider config in env vars, replacing all the hardcoding, and then also putting in valid link construction for gif search, and actually putting it into chat. So far it only works with Klipy, as far as I’ve tested… but it does work.
Blisterexe@lemmy.zip 1 week ago
That’s awesome! It’s a shame the first pr got closed because the maintainer prefers a worse provider lmao.
voracitude@lemmy.world 1 week ago
I’m not sure they fully read what the changes do… Because right now it’s not even just a worse provider, it’s straight up broken for self-hosters. Maybe the stoat team are doing this just to force everyone into a subscription in the end, so they aren’t interested in making it any better for self-hosters? Maybe they actually just hate self-hosting, or are really really into hardcoding values? No idea 🤷♀️
My branch is still available on my own repo though, if anyone wants to try building from that.
Blisterexe@lemmy.zip 1 week ago
You might want to point that out, maybe they didn’t realise tenor was shutting down.
voracitude@lemmy.world 1 week ago
I did; we’ll see if they read it I guess.
In the meantime, I built my changes into my own repo, and I included an install script for anyone who wants to run this with Cosmos (cosmos-cloud.io) handling the container management and reverse proxy. I’ve tried to handle as much of the setup as possible - you only need a domain with a couple of subdomains, and optionally you can enter SMTP credentials during setup if you want the script to configure that for you too (alternatively, just add your credentials to your revolt.toml later).
If you want to give it a go you can find the initial release here: github.com/dorkian-gray/stoatchat_cosmos