summaryrefslogtreecommitdiffstats
path: root/models/helper.go
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-12-04 01:14:26 +0200
committerGitHub <noreply@github.com>2017-12-04 01:14:26 +0200
commit5dc37b187c8b839a15ff73758799f218ddeb3bc9 (patch)
treeb63e5ca72c7b9e72c79408ace82dfcba992b5793 /models/helper.go
parente59adcde655aac0e8afd3249407c9a0a2b1b1d6b (diff)
downloadgitea-5dc37b187c8b839a15ff73758799f218ddeb3bc9.tar.gz
gitea-5dc37b187c8b839a15ff73758799f218ddeb3bc9.zip
Add reactions to issues/PR and comments (#2856)
Diffstat (limited to 'models/helper.go')
-rw-r--r--models/helper.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/models/helper.go b/models/helper.go
index 6e8580524a..a284424bb5 100644
--- a/models/helper.go
+++ b/models/helper.go
@@ -19,3 +19,11 @@ func valuesRepository(m map[int64]*Repository) []*Repository {
}
return values
}
+
+func valuesUser(m map[int64]*User) []*User {
+ var values = make([]*User, 0, len(m))
+ for _, v := range m {
+ values = append(values, v)
+ }
+ return values
+}