gitea/services/convert
JakobDev ea385f5d39
Fix API leaking Usermail if not logged in ()
The API should only return the real Mail of a User, if the caller is
logged in. The check do to this don't work. This PR fixes this. This not
really a security issue, but can lead to Spam.

---------

Co-authored-by: silverwind <me@silverwind.io>
..
activity.go For API attachments, use API URL ()
attachment.go For API attachments, use API URL ()
convert.go Allow Organisations to have a E-Mail ()
git_commit.go Add file status for API "Get a single commit from a repository" () ()
git_commit_test.go Move `convert` package to services ()
issue.go For API attachments, use API URL ()
issue_comment.go Add context parameter to some database functions ()
issue_test.go Move `convert` package to services ()
main_test.go Move `convert` package to services ()
mirror.go Fix SyncOnCommit always return false in API of push_mirrors ()
notification.go Fix `Permission` in API returned repository struct ()
package.go Fix `Permission` in API returned repository struct ()
pull.go Fix `Permission` in API returned repository struct ()
pull_review.go Add context cache as a request level cache ()
pull_test.go Fix `Permission` in API returned repository struct ()
release.go For API attachments, use API URL ()
repository.go Fix `Permission` in API returned repository struct ()
status.go refactor improve NoBetterThan ()
user.go Fix API leaking Usermail if not logged in ()
user_test.go Add context cache as a request level cache ()
utils.go Move `convert` package to services ()
utils_test.go Rewrite queue ()
wiki.go Make wiki title supports dashes and improve wiki name related features ()