Improve og logging
This commit is contained in:
parent
94edb41973
commit
788fad7d05
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user