mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-08-08 14:41:52 +02:00
fix: nostr redirect user load
This commit is contained in:
@@ -90,7 +90,7 @@ public abstract class BaseDownloadController : Controller
|
||||
|
||||
protected async Task<VoidFileResponse?> SetupDownload(Guid id)
|
||||
{
|
||||
var meta = await _fileInfo.Get(id, false);
|
||||
var meta = await _fileInfo.Get(id, true);
|
||||
if (meta == null)
|
||||
{
|
||||
Response.StatusCode = 404;
|
||||
@@ -104,6 +104,11 @@ public abstract class BaseDownloadController : Controller
|
||||
return default;
|
||||
}
|
||||
|
||||
if (meta.Uploader != default)
|
||||
{
|
||||
meta.Uploader = meta.Uploader!.PublicProfile ? meta.Uploader : null;
|
||||
}
|
||||
|
||||
return await CheckDownload(meta);
|
||||
}
|
||||
|
||||
|
@@ -12,7 +12,7 @@ public class VoidFileResponse
|
||||
public Guid Id { get; init; }
|
||||
public VoidFileMeta Metadata { get; init; } = null!;
|
||||
public Paywall? Payment { get; init; }
|
||||
public ApiUser? Uploader { get; init; }
|
||||
public ApiUser? Uploader { get; set; }
|
||||
public Bandwidth? Bandwidth { get; init; }
|
||||
public VirusStatus? VirusScan { get; init; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user