mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-17 21:12:22 +01:00
Update VoidCat/Controllers/NostrController.cs
This commit is contained in:
parent
d665b8bef4
commit
691beb9334
@ -65,9 +65,12 @@ public class NostrController : BaseDownloadController
|
||||
{
|
||||
return Unauthorized();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (_settings.MaintenanceMode)
|
||||
{
|
||||
throw new InvalidOperationException("Site is in maintenance mode");
|
||||
}
|
||||
var nostrUser = await _userManager.LoginOrRegister(pubkey);
|
||||
var file = Request.Form.Files.First();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user