fix: statistic upstream url change & save article to private

This commit is contained in:
Zhaolong
2022-04-27 23:12:20 +08:00
parent b92598ecc4
commit 09b8e8e262
6 changed files with 13 additions and 18 deletions

View File

@@ -60,7 +60,7 @@ func ListArticlesByUser(c *gin.Context) {
Forbidden(c)
return
}
var articles *[]models.ListArtile
var articles *[]models.ListArticle
if published == "published" {
articles = article.ListPublishedArticlesByUser(claims.ID)
} else if published == "notpublished" {