diff --git a/modules/blog/mod.ts b/modules/blog/mod.ts index 7982b917b..bdf572cdd 100644 --- a/modules/blog/mod.ts +++ b/modules/blog/mod.ts @@ -16,9 +16,9 @@ export default function (s: Fastro) { let html_url = ""; if (sessionId) { const r = ctx.server.serverOptions[sessionId]; - if (r && r.value) { - avatar_url = r.value.avatar_url; - html_url = r.value.html_url; + if (r) { + avatar_url = r.avatar_url; + html_url = r.html_url; } } diff --git a/modules/docs/mod.ts b/modules/docs/mod.ts index 8448b4ab0..408a7a84f 100644 --- a/modules/docs/mod.ts +++ b/modules/docs/mod.ts @@ -17,9 +17,9 @@ export default function (s: Fastro) { let html_url = ""; if (sessionId) { const r = ctx.server.serverOptions[sessionId]; - if (r && r.value) { - avatar_url = r.value.avatar_url; - html_url = r.value.html_url; + if (r) { + avatar_url = r.avatar_url; + html_url = r.html_url; } } diff --git a/modules/index/mod.ts b/modules/index/mod.ts index eb149f51e..f355f2c35 100644 --- a/modules/index/mod.ts +++ b/modules/index/mod.ts @@ -42,9 +42,9 @@ export default function (s: Fastro) { let html_url = ""; if (sessionId) { const r = ctx.server.serverOptions[sessionId]; - if (r && r.value) { - avatar_url = r.value.avatar_url; - html_url = r.value.html_url; + if (r) { + avatar_url = r.avatar_url; + html_url = r.html_url; } }