Feat: user profile

This commit is contained in:
HFO4
2020-02-18 15:34:40 +08:00
parent f91792bc64
commit 33a917cc75
6 changed files with 67 additions and 7 deletions

View File

@@ -234,7 +234,7 @@ func ListShares(uid uint, page, pageSize int, order string, publicOnly bool) ([]
dbChain := DB
dbChain = dbChain.Where("user_id = ?", uid)
if publicOnly {
dbChain.Where("password = ?", "")
dbChain = dbChain.Where("password = ?", "")
}
// 计算总数用于分页