mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-22 06:31:29 +00:00
[HTML] Full spoiler support (#285)
This commit is contained in:
@@ -20,6 +20,8 @@ namespace DiscordChatExporter.Core.Models
|
||||
|
||||
public bool IsImage { get; }
|
||||
|
||||
public bool IsSpoiler { get; }
|
||||
|
||||
public FileSize FileSize { get; }
|
||||
|
||||
public Attachment(string id, int? width, int? height, string url, string fileName, FileSize fileSize)
|
||||
@@ -32,6 +34,8 @@ namespace DiscordChatExporter.Core.Models
|
||||
FileSize = fileSize;
|
||||
|
||||
IsImage = GetIsImage(fileName);
|
||||
|
||||
IsSpoiler = IsImage && FileName.StartsWith("SPOILER_", StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
public override string ToString() => FileName;
|
||||
|
||||
Reference in New Issue
Block a user