| author | 2025-08-30 15:13:27 +0700 | |
|---|---|---|
| committer | 2025-08-30 15:13:27 +0700 | |
| commit | 218fc8b0d470a3df8a412f7ab32925e74ca4b315 (patch) | |
| tree | 108968d6876d94088d6c929850ed1b3a5cb38806 /internal/router/api-v1-blog-search.go | |
| parent | c33d3b275f2580bff2d510715448c14be1d5d5b5 (diff) | |
| download | web-218fc8b0d470a3df8a412f7ab32925e74ca4b315.tar.gz web-218fc8b0d470a3df8a412f7ab32925e74ca4b315.zip | |
feat: like count shown on blog search
fix: corrupted page links in cache
Diffstat (limited to 'internal/router/api-v1-blog-search.go')
| -rw-r--r-- | internal/router/api-v1-blog-search.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/router/api-v1-blog-search.go b/internal/router/api-v1-blog-search.go index a809783..e22fabe 100644 --- a/internal/router/api-v1-blog-search.go +++ b/internal/router/api-v1-blog-search.go @@ -69,6 +69,7 @@ func Api_V1_BlogSearch(l map[string]*locale.LocaleConfig, langs []string, b2Clie "ShortDescription": page.Metadata.ShortDescription, "Thumbnail": page.Metadata.Thumbnail, "Tags": page.Metadata.Tags, + "LikeCount": CCache.GetLikeCount(page.FileName), }) break } |