summaryrefslogtreecommitdiffstats
path: root/models/issue_reaction.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2019-12-18 14:07:36 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2019-12-18 21:07:36 +0800
commit6d811bcb14eb7199452d2673a6c30412989f7498 (patch)
treeaa5b16dc73b0cf7d4fa53b770a1fbb5f85d5daee /models/issue_reaction.go
parent3b4682e1722441a2c64f0bacd05aa795f8fb27da (diff)
downloadgitea-6d811bcb14eb7199452d2673a6c30412989f7498.tar.gz
gitea-6d811bcb14eb7199452d2673a6c30412989f7498.zip
Hide not allowed Reactions (#9387)
* Hide not allowed Reactions * filter in query :D * use ` Co-Authored-By: Alexey 〒erentyev <axifnx@gmail.com> * update xorm v0.8.0 -> v0.8.1
Diffstat (limited to 'models/issue_reaction.go')
-rw-r--r--models/issue_reaction.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/issue_reaction.go b/models/issue_reaction.go
index b4f332a089..6896eeeafc 100644
--- a/models/issue_reaction.go
+++ b/models/issue_reaction.go
@@ -69,6 +69,7 @@ func findReactions(e Engine, opts FindReactionsOptions) ([]*Reaction, error) {
reactions := make([]*Reaction, 0, 10)
sess := e.Where(opts.toConds())
return reactions, sess.
+ In("reaction.`type`", setting.UI.Reactions).
Asc("reaction.issue_id", "reaction.comment_id", "reaction.created_unix", "reaction.id").
Find(&reactions)
}