mirror of
https://github.com/gogs/gogs.git
synced 2025-05-24 16:30:51 +00:00
base/tool: reduce unnecessary report
This commit is contained in:
parent
127005d733
commit
ab78d4e2b7
@ -46,6 +46,7 @@ The goal of this project is to make the easiest, fastest, and most painless way
|
|||||||
- Repository issues, pull requests and wiki
|
- Repository issues, pull requests and wiki
|
||||||
- Migrate and mirror repository and its wiki
|
- Migrate and mirror repository and its wiki
|
||||||
- Web editor for repository files and wiki
|
- Web editor for repository files and wiki
|
||||||
|
- Jupyter Notebook
|
||||||
- Gravatar and Federated avatar with custom source
|
- Gravatar and Federated avatar with custom source
|
||||||
- Mail service
|
- Mail service
|
||||||
- Administration panel
|
- Administration panel
|
||||||
@ -105,6 +106,7 @@ There are 5 ways to install Gogs:
|
|||||||
## Software and Service Support
|
## Software and Service Support
|
||||||
|
|
||||||
- [Drone](https://github.com/drone/drone) (CI)
|
- [Drone](https://github.com/drone/drone) (CI)
|
||||||
|
- [Jenkins](https://wiki.jenkins-ci.org/display/JENKINS/Gogs+Webhook+Plugin) (CI)
|
||||||
- [Fabric8](http://fabric8.io/) (DevOps)
|
- [Fabric8](http://fabric8.io/) (DevOps)
|
||||||
- [Taiga](https://taiga.io/) (Project Management)
|
- [Taiga](https://taiga.io/) (Project Management)
|
||||||
- [Puppet](https://forge.puppetlabs.com/Siteminds/gogs) (IT)
|
- [Puppet](https://forge.puppetlabs.com/Siteminds/gogs) (IT)
|
||||||
|
@ -28,6 +28,7 @@ Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自
|
|||||||
- 支持迁移和镜像仓库以及它的 Wiki
|
- 支持迁移和镜像仓库以及它的 Wiki
|
||||||
- 支持在线编辑仓库文件和 Wiki
|
- 支持在线编辑仓库文件和 Wiki
|
||||||
- 支持自定义源的 Gravatar 和 Federated Avatar
|
- 支持自定义源的 Gravatar 和 Federated Avatar
|
||||||
|
- 支持 Jupyter Notebook
|
||||||
- 支持邮件服务
|
- 支持邮件服务
|
||||||
- 支持后台管理面板
|
- 支持后台管理面板
|
||||||
- 支持 MySQL、PostgreSQL、SQLite3 和 [TiDB](https://github.com/pingcap/tidb)(实验性支持) 数据库
|
- 支持 MySQL、PostgreSQL、SQLite3 和 [TiDB](https://github.com/pingcap/tidb)(实验性支持) 数据库
|
||||||
@ -74,6 +75,7 @@ Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自
|
|||||||
## 软件及服务支持
|
## 软件及服务支持
|
||||||
|
|
||||||
- [Drone](https://github.com/drone/drone)(CI)
|
- [Drone](https://github.com/drone/drone)(CI)
|
||||||
|
- [Jenkins](https://wiki.jenkins-ci.org/display/JENKINS/Gogs+Webhook+Plugin)(CI)
|
||||||
- [Fabric8](http://fabric8.io/)(DevOps)
|
- [Fabric8](http://fabric8.io/)(DevOps)
|
||||||
- [Taiga](https://taiga.io/)(项目管理)
|
- [Taiga](https://taiga.io/)(项目管理)
|
||||||
- [Puppet](https://forge.puppetlabs.com/Siteminds/gogs)(IT)
|
- [Puppet](https://forge.puppetlabs.com/Siteminds/gogs)(IT)
|
||||||
|
@ -181,11 +181,12 @@ func HashEmail(email string) string {
|
|||||||
// which includes app sub-url as prefix. However, it is possible
|
// which includes app sub-url as prefix. However, it is possible
|
||||||
// to return full URL if user enables Gravatar-like service.
|
// to return full URL if user enables Gravatar-like service.
|
||||||
func AvatarLink(email string) (url string) {
|
func AvatarLink(email string) (url string) {
|
||||||
if setting.EnableFederatedAvatar && setting.LibravatarService != nil {
|
if setting.EnableFederatedAvatar && setting.LibravatarService != nil &&
|
||||||
|
len(email) > 0 {
|
||||||
var err error
|
var err error
|
||||||
url, err = setting.LibravatarService.FromEmail(email)
|
url, err = setting.LibravatarService.FromEmail(email)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(4, "LibravatarService.FromEmail [%s]: %v", email, err)
|
log.Error(3, "LibravatarService.FromEmail [%s]: %v", email, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(url) == 0 && !setting.DisableGravatar {
|
if len(url) == 0 && !setting.DisableGravatar {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user