silverwind
1e6fa57acb
Use single shared random string generation function ( #15741 )
...
* Use single shared random string generation function
- Replace 3 functions that do the same with 1 shared one
- Use crypto/rand over math/rand for a stronger RNG
- Output only alphanumerical for URL compatibilty
Fixes : #15536
* use const string method
* Update modules/avatar/avatar.go
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: a1012112796 <1012112796@qq.com>
4 years ago
Lunny Xiao
80a6b0f5bc
Avatars and Repo avatars support storing in minio ( #12516 )
...
* Avatar support minio
* Support repo avatar minio storage
* Add missing migration
* Fix bug
* Fix test
* Add test for minio store type on avatars and repo avatars; Add documents
* Fix bug
* Fix bug
* Add back missed avatar link method
* refactor codes
* Simplify the codes
* Code improvements
* Fix lint
* Fix test mysql
* Fix test mysql
* Fix test mysql
* Fix settings
* Fix test
* fix test
* Fix bug
4 years ago
6543
f7b3e06026
Fix Avatar Resize (resize algo NearestNeighbor -> Bilinear) ( #12745 )
...
* Update Vendor github.com/nfnt/resize
* switch resize algo NearestNeighbor -> Bilinear
4 years ago
Rob Watson
df2557835b
Improve handling of non-square avatars ( #7025 )
...
* Crop avatar before resizing (#1268 )
Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
* Fix spelling error
Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
6 years ago
Lunny Xiao
3c87c57d96
golint fixed for modules/avatar
8 years ago
Dennis Chen
6488ee12be
avatar: make custom and generated avatars equal ( #3301 )
...
Sets all avatars to use PNG image format.
Keeps avatars consistent at 290x290px resolution.
Signed-off-by: Dennis Chen <barracks510@gmail.com>
9 years ago
Unknwon
d5a3021a7d
Make markdown as an independent module
9 years ago
Unknwon
58e004f7da
Remove cache avatar support and add its tests
9 years ago
Unknwon
5dc3dd1704
fix #1960
9 years ago
Unknwon
1559bd58e7
save custom avatar as PNG
9 years ago
Unknwon
a205acf829
drop go 1.2 support
9 years ago
Unknwon
384fbeca80
#1474 logic fix
9 years ago
Unknwon
5ddcd8420b
#1474 minor fix
9 years ago
Unknwon
4cfa2ca40d
#1474 Edit New issue UpdateGravatarSource() assumes insecure protocol
9 years ago
Unknwon
68b9d78386
remove sync.Pool and support go1.2 again
10 years ago
Unknwon
4b43ffc96c
Generate random avatar based on e-mail when disable Gravatar
10 years ago
Vitaliy Vasilenko
cf59057ef3
fix if service.ENABLE_CACHE_AVATAR is true
10 years ago
Joseph Crail
39c068400e
Fix spelling errors in comments.
10 years ago
Andrew Burns
adc1ac689e
HashEmail function should also remove spaces
...
According to the [Gravatar API](https://en.gravatar.com/site/implement/hash/ ) whitespace should also be removed from the email, it was not doing this previously.
10 years ago
Unknwon
55dfe2c978
custom avatar upload
10 years ago
Unknwon
a0f9197b45
GetFile api
10 years ago
Unknown
c3a52f7dd0
Mirror bug fix on downloading zip
11 years ago
zhsso
a4cbe79567
fix
11 years ago
zhsso
f3ed11d177
mistakes
11 years ago
Unknown
eb6021f73f
Fix issue pages URL params
11 years ago
skyblue
4662a73ac3
name change of avatar
11 years ago
Unknown
2fa8d0c8dd
Added create issue
11 years ago
skyblue
7048ea4527
update avatar, remove gzip request header
11 years ago
shxsun
8376b0d53c
use modeles/log instead log
11 years ago
Gogs
964e537479
append route to web
11 years ago
skyblue
79604f553f
fix download part problem, add png support
11 years ago
skyblue
8e47ae2102
add avatar inorder to view code on github
11 years ago