New field in the Subreddit model: spoiler_placeholder. If not null, replace medias with an image placeholder for spoilers. If the submission is a link, just force-hide its preview. If it's a media, send the image.
For medias there are two possible approaches:
add an utility function to get the file_id of the spoiler image and send it for medias
use an Image sender and init it with a static url with the image (maybe telegra.ph?)
Idea: with link submissions, to make it more explicit that the submission is a spoiler, maybe add at the beginning of the post test an hidden link linking to the spoiler image. That way the user will know the url contains spoilers. Maybe for the link preview, use a wider and shorter image so the link preview doesn't occupy too much screen
New field in the Subreddit model:
spoiler_placeholder
. If not null, replace medias with an image placeholder for spoilers. If the submission is a link, just force-hide its preview. If it's a media, send the image.For medias there are two possible approaches:
Image
sender and init it with a static url with the image (maybe telegra.ph?)Idea: with link submissions, to make it more explicit that the submission is a spoiler, maybe add at the beginning of the post test an hidden link linking to the spoiler image. That way the user will know the url contains spoilers. Maybe for the link preview, use a wider and shorter image so the link preview doesn't occupy too much screen