v2.0.5
Installation
To install the package via NuGet, you can use either .NET CLI:
dotnet add package Limbo.Umbraco.TwentyThree --version 2.0.5
or the older NuGet Package Manager:
Install-Package Limbo.Umbraco.TwentyThree -Version 2.0.5
Changelog
-
Changing the
Credentials
property toList<T>
instead ofIReadOnlyList<T>
as .NET 6 won't populate the property if is has a default value (see #1 and 34c6db7)
For thev2.0.4
, I made a change to theCredentials
property so that the package provides a default value for the property in case no configuration has been added toappsettings.json
. If the default value isn't there, and no configuration has been provided, the property value would end up beingnull
, which would cause null reference errors throughout the package.Setting a default value therefore seemed to fix the issue. But I might have only tested this in Umbraco 12 (.NET 7), and not in Umbraco 10 (.NET 6), as .NET 6 doesn't seem to support this for properties where the type is an interface like
IList<T>
orIReadOnlyList<T>
.Therefore, the fix changes the property type to a
List<T>
in which case the property is correctly populated in both .NET 6 and .NET 7. -
Updated controller to send photo token to the TwentyThree API (see #2 and e2c281b)
If a token is specified as part of the input (embed code), we should make sure to send that token to the TwentyThree API along with the photo ID. This means that we can fetch information about the photo/video even if the API user doesn't have access to the video.