forgejo/modules/structs
6543 37e10d4543 [API] Add Reactions (#9220)
* reject reactions wich ar not allowed

* dont duble check CreateReaction now throw ErrForbiddenIssueReaction

* add /repos/{owner}/{repo}/issues/comments/{id}/reactions endpoint

* add Find Functions

* fix some swagger stuff + add issue reaction endpoints + GET ReactionList now use FindReactions...

* explicite Issue Only Reaction for FindReactionsOptions with "-1" commentID

* load issue; load user ...

* return error again

* swagger def canged after LINT

* check if user has ben loaded

* add Tests

* better way of comparing results

* add suggestion

* use different issue for test
(dont interfear with integration test)

* test dont compare Location on timeCompare

* TEST: add forbidden dubble add

* add comments in code to explain

* add settings.UI.ReactionsMap
so if !setting.UI.ReactionsMap[opts.Type] works
2019-12-07 17:04:19 -05:00
..
admin_user.go
attachment.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go
issue.go
issue_comment.go
issue_label.go
issue_milestone.go
issue_reaction.go
issue_tracked_time.go
lfs_lock.go
miscellaneous.go
org.go
org_member.go
org_team.go
org_type.go
pull.go
release.go
repo.go
repo_branch.go
repo_collaborator.go
repo_commit.go
repo_file.go
repo_key.go
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go
status.go
task.go
user.go
user_app.go
user_email.go
user_gpgkey.go
user_key.go
utils.go