-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Fix avatar URLs #3069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix avatar URLs #3069
Conversation
6024f36
to
d993e3b
Compare
Codecov Report
@@ Coverage Diff @@
## master #3069 +/- ##
==========================================
+ Coverage 33.44% 33.47% +0.03%
==========================================
Files 270 270
Lines 39564 39595 +31
==========================================
+ Hits 13231 13255 +24
- Misses 24441 24448 +7
Partials 1892 1892
Continue to review full report at Codecov.
|
49b6add
to
ca4c721
Compare
modules/base/tool.go
Outdated
@@ -27,6 +27,8 @@ import ( | |||
"github.com/Unknwon/com" | |||
"github.com/Unknwon/i18n" | |||
"github.com/gogits/chardet" | |||
"net/url" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
modules/base/tool_test.go
Outdated
@@ -9,6 +9,7 @@ import ( | |||
"github.com/Unknwon/i18n" | |||
macaroni18n "github.com/go-macaron/i18n" | |||
"github.com/stretchr/testify/assert" | |||
"net/url" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
LGTM |
LGTM |
also fixed #2941 |
Any chance to get a backport to 3.1.x? |
@ethantkoenig can you backport? |
* Fix avatar URLs * import order
Fixes #3068. This PR also
net/url
library instead of manually assembling URLs.