Improve og logging
This commit is contained in:
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user