Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0064757

Browse files
committed
bugfix
1 parent db0a113 commit 0064757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/controller/article.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (ArticleController) Detail(ctx echo.Context) error {
134134

135135
logic.Views.Incr(Request(ctx), model.TypeArticle, article.Id, me.Uid)
136136

137-
if article.IsSelf && me.Uid != article.User.Uid {
137+
if !article.IsSelf || me.Uid != article.User.Uid {
138138
go logic.DefaultViewRecord.Record(article.Id, model.TypeArticle, me.Uid)
139139
}
140140

0 commit comments

Comments
 (0)