Add automatic removal (and perhaps warning) for NSFW GIFs
Closed this issue · 5 comments
Giphy's API returns a content rating on the same scale as the USA's MPAA ratings, when querying a GIF by ID (which is always present at the end of the URL). I haven't tested how well it works, but I'm guessing it should be able to filter out a large portion of inappropriate content sent. Tenor is also a whole other beast since it does have a content rating system but only lets you use that as a search parameter, and doesn't let you see the rating when querying a GIF for some reason.
Could you provide sources for these API endpoints? Documentation links should be enough.
Could you provide sources for these API endpoints? Documentation links should be enough.
https://developers.giphy.com/docs/api/endpoint#get-gif-by-id
This returns an object with a bunch of info about the queried GIF, including content ratings
I understand, though I started to call into question the frequency of GIPHY links in the server.
Most GIFs are Tenor since that's the primary one that Discord uses. But you said that wasn't possible?
It's likely possible to some degree but you don't get it from the API like with Giphy
You'd probably have to detect certain words in the URL or something, they tend to have NSFW keywords in them when it's, well, an NSFW GIF
This certainly isn't as reliable as getting it directly from Tenor but I suppose it could work?
stale asf