[backend/api] Include DriveFile name in NoteAttachment
This commit is contained in:
parent
2dee0cb91a
commit
fe08c4515e
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue