[backend/drive] Normalize empty / whitespace alt text to null

This commit is contained in:
Laura Hausmann 2024-12-16 21:30:26 +01:00
parent ce646e84d9
commit 48e688e514
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -39,6 +39,9 @@ public class DriveService(
if (logExisting)
logger.LogDebug("Storing file {uri} for user {userId}", uri, user.Id);
if (string.IsNullOrWhiteSpace(description))
description = null;
try
{
// Do we already have the file?