Improve og logging

This commit is contained in:
Kieran 2024-01-10 11:50:46 +00:00
parent 94edb41973
commit 788fad7d05
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -69,7 +69,7 @@ public class OpenGraphController : Controller
}
else if (nid.Hrp is "nprofile" or "npub")
{
var meta = await GetProfileMeta(id);
var meta = await GetProfileMeta(nid.Special);
if (meta != default)
{
var tags = MetaTagsToElements([
@ -89,7 +89,7 @@ public class OpenGraphController : Controller
}
catch (Exception ex) when (ex is not TaskCanceledException)
{
_logger.LogWarning("Failed to inject event tags: {Message}", ex.Message);
_logger.LogWarning("Failed to inject event tags: {Message}", ex.ToString());
}
}