[store] hide nsfw content behind spoiler

This commit is contained in:
Andriy
2023-01-02 23:31:05 +02:00
parent 996147436b
commit ff78d8e2ae
5 changed files with 26 additions and 7 deletions
@@ -24,9 +24,13 @@ public class AnimBoobsService : IRandomMediaService
public async Task<RandomMedia> GetRandomMediaAsync()
{
var fileName = await _httpClient.GetStringAsync("index.php");
return new RandomMedia(new InputFileUrl($"https://westdev.me/_boobs/media/{fileName}"))
// https://bugs.telegram.org/c/23674 workaround
var video = await _httpClient.GetStreamAsync($"https://westdev.me/_boobs/media/{fileName}");
return new RandomMedia(new InputFile(video, fileName))
{
Type = InputMediaType.Video
Type = InputMediaType.Video,
Nsfw = true
};
}