File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -674,8 +674,8 @@ func RegisterRoutes(m *macaron.Macaron) {
674
674
Delete (repo .DeleteIssueCommentDeprecated )
675
675
m .Combo ("/reactions" ).
676
676
Get (bind (api.CommentReactionList {}), repo .GetCommentReactions ).
677
- Put (reqToken (), repo .AddCommentReaction ).
678
- Delete (reqToken (), repo .DelCommentReaction )
677
+ Put (reqToken (), api. CommentReaction {}, repo .AddCommentReaction ).
678
+ Delete (reqToken (), api. CommentReaction {}, repo .DelCommentReaction )
679
679
})
680
680
})
681
681
Original file line number Diff line number Diff line change @@ -393,3 +393,21 @@ func deleteIssueComment(ctx *context.APIContext) {
393
393
394
394
ctx .Status (204 )
395
395
}
396
+
397
+ func GetCommentReactions (ctx * context.APIContext , form api.CommentReactionList ) {
398
+
399
+ }
400
+
401
+ func AddCommentReaction (ctx * context.APIContext , form api.CommentReaction ) {
402
+
403
+ setCommentReaction (ctx , form , true )
404
+ }
405
+
406
+ func DelCommentReaction (ctx * context.APIContext , form api.CommentReaction ) {
407
+
408
+ setCommentReaction (ctx , form , false )
409
+ }
410
+
411
+ func setCommentReaction (ctx * context.APIContext , form api.CommentReaction , create bool ) {
412
+
413
+ }
You can’t perform that action at this time.
0 commit comments