[backend/api] Include DriveFile name in NoteAttachment

This commit is contained in:
pancakes 2025-02-26 17:58:34 +10:00 committed by Laura Hausmann
parent 2dee0cb91a
commit fe08c4515e
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 3 additions and 1 deletions

View file

@ -124,7 +124,8 @@ public class NoteRenderer(
ContentType = p.Type, ContentType = p.Type,
Blurhash = p.Blurhash, Blurhash = p.Blurhash,
AltText = p.Comment, AltText = p.Comment,
IsSensitive = p.IsSensitive IsSensitive = p.IsSensitive,
FileName = p.Name
}) })
.ToList(); .ToList();
} }

View file

@ -58,6 +58,7 @@ public class NoteAttachment
public required bool IsSensitive { get; set; } public required bool IsSensitive { get; set; }
public required string? Blurhash { get; set; } public required string? Blurhash { get; set; }
public required string? AltText { get; set; } public required string? AltText { get; set; }
public required string FileName { get; set; }
} }
public class NotePollSchema public class NotePollSchema