From 9b315c11cd5ab882b4ae56a9e3b1ede73838bf53 Mon Sep 17 00:00:00 2001 From: Victor_Jay Date: Tue, 2 Jun 2026 15:22:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=BF=E5=AE=A2?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=20PostCount=20=E5=AD=97=E6=AE=B5=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 访客视图 .SpaceUser.PostCount -> .PostCount,与 Owner 视图保持一致 - PostCount 由 Controller 作为顶层字段传入,不在 SpaceUser 对象中 --- templates/MetaLab-2026/html/space/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/MetaLab-2026/html/space/index.html b/templates/MetaLab-2026/html/space/index.html index c509c7d..0b327de 100644 --- a/templates/MetaLab-2026/html/space/index.html +++ b/templates/MetaLab-2026/html/space/index.html @@ -96,7 +96,7 @@ class="space-tab{{if eq .ActiveTab "articles"}} active{{end}}"> 文章 - {{.SpaceUser.PostCount}} + {{.PostCount}}