Date | 2023-08-26 (453 days ago) |
---|---|
Downloads | 4,566 downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET 6 |
Umbraco Versions | Umbraco 10 Umbraco 11 Umbraco 12 |
#installation
">InstallationTo 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
">ChangelogChanging the Credentials
property to List<T>
instead of IReadOnlyList<T>
as .NET 6 won't populate the property if is has a default value (see #1
and 34c6db7
)
For the v2.0.4
, I made a change to the Credentials
property so that the package provides a default value for the property in case no configuration has been added to appsettings.json
. If the default value isn't there, and no configuration has been provided, the property value would end up being null
, 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>
or IReadOnlyList<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.