Fix: Getting notifications via API would crash

This commit is contained in:
nicolas.dorier 2024-11-14 21:53:37 +09:00
parent 6d737ce119
commit 8e688b7f28
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
3 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@ namespace BTCPayServer.Client.Models
public string Body { get; set; }
public string StoreId { get; set; }
public bool Seen { get; set; }
public Uri Link { get; set; }
public string Link { get; set; }
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
public DateTimeOffset CreatedTime { get; set; }

View File

@ -135,7 +135,7 @@ namespace BTCPayServer.Controllers.Greenfield
Body = entity.Body,
StoreId = entity.StoreId,
Seen = entity.Seen,
Link = string.IsNullOrEmpty(entity.ActionLink) ? null : new Uri(entity.ActionLink)
Link = entity.ActionLink
};
}

View File

@ -10,6 +10,8 @@ If you are using Boltcards, we advise you to update to this release.
* Greenfield: Add image upload for app items (#6226 #6075) @dennisreimann
### Bug fixes
* Fix: Getting notifications via API would crash @NicolasDorier
* Boltcard would get bricked during reset from the balance view with wrong card (#6400) @NicolasDorier
* UI: Fix escaped HTML tags in UTXO rescan message (#6399 #6398) @dennisreimann
* UI: Allow text break in labels to avoid horizontal scrolling (#6366) @dennisreimann