Improve og logging

This commit is contained in:
2024-01-10 11:50:46 +00:00
parent 94edb41973
commit 788fad7d05

View File

@ -69,7 +69,7 @@ public class OpenGraphController : Controller
} }
else if (nid.Hrp is "nprofile" or "npub") else if (nid.Hrp is "nprofile" or "npub")
{ {
var meta = await GetProfileMeta(id); var meta = await GetProfileMeta(nid.Special);
if (meta != default) if (meta != default)
{ {
var tags = MetaTagsToElements([ var tags = MetaTagsToElements([
@ -89,7 +89,7 @@ public class OpenGraphController : Controller
} }
catch (Exception ex) when (ex is not TaskCanceledException) 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());
} }
} }