Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1
zouap 4 years ago
parent
commit
2a977e1a5a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/star.go

+ 1
- 1
models/star.go View File

@@ -62,7 +62,7 @@ func IsStaring(userID, repoID int64) bool {
} }


func isStaring(e Engine, userID, repoID int64) bool { func isStaring(e Engine, userID, repoID int64) bool {
has, _ := e.Get(&Star{0, userID, repoID})
has, _ := e.Get(&Star{0, userID, repoID, 0})
return has return has
} }




Loading…
Cancel
Save