summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-24 00:23:54 +0800
committerUnknwon <u@gogs.io>2016-07-24 00:23:54 +0800
commit46e96c008cf966428c9dad71c7871de88186e3fe (patch)
tree57e276d8f971c74a6dac841352ec2bee96e93d8f /models/action.go
parent256cd6374adf646a46265efe18a2d3f822bf7269 (diff)
downloadgitea-46e96c008cf966428c9dad71c7871de88186e3fe.tar.gz
gitea-46e96c008cf966428c9dad71c7871de88186e3fe.zip
Use struct for UI settings
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go
index d4a07ced39..62252c6c58 100644
--- a/models/action.go
+++ b/models/action.go
@@ -470,8 +470,8 @@ func CommitRepoAction(
}
}
- if len(commit.Commits) > setting.FeedMaxCommitNum {
- commit.Commits = commit.Commits[:setting.FeedMaxCommitNum]
+ if len(commit.Commits) > setting.UI.FeedMaxCommitNum {
+ commit.Commits = commit.Commits[:setting.UI.FeedMaxCommitNum]
}
bs, err := json.Marshal(commit)