kopia lustrzana https://github.com/wagtail/wagtail
Changing default value for Gravatar URL from ( mm -> mp )
- See https://docs.gravatar.com/api/avatars/images/#default-image - Fixes #12658pull/11604/head
rodzic
23275a4cef
commit
547e4d3731
|
@ -87,6 +87,7 @@ Changelog
|
|||
* Maintenance: Use the Stimulus `ZoneController` (`w-zone`) to remove ad-hoc jQuery for the privacy switch when toggling visibility of private/public elements (Ayaan Qadri)
|
||||
* Maintenance: Remove unused `is_active` & `active_menu_items` from `wagtail.admin.menu.MenuItem` (Srishti Jaiswal)
|
||||
* Maintenance: Only call `openpyxl` at runtime to improve performance for projects that do not use `ReportView`, `SpreadsheetExportMixin` and `wagtail.contrib.redirects` (Sébastien Corbin)
|
||||
* Maintenance: Adopt the update value `mp` instead of `mm` for 'mystery person' as the default Gravatar if no avatar found (Harsh Dange)
|
||||
|
||||
|
||||
6.3.2 (xx.xx.xxxx) - IN DEVELOPMENT
|
||||
|
|
|
@ -858,6 +858,7 @@
|
|||
* Noah van der Meer
|
||||
* Strapchay
|
||||
* Alex Fulcher
|
||||
* Harsh Dange
|
||||
|
||||
## Translators
|
||||
|
||||
|
|
|
@ -105,6 +105,7 @@ depth: 1
|
|||
* Use the Stimulus `ZoneController` (`w-zone`) to remove ad-hoc jQuery for the privacy switch when toggling visibility of private/public elements (Ayaan Qadri)
|
||||
* Remove unused `is_active` & `active_menu_items` from `wagtail.admin.menu.MenuItem` (Srishti Jaiswal)
|
||||
* Only call `openpyxl` at runtime to improve performance for projects that do not use `ReportView`, `SpreadsheetExportMixin` and `wagtail.contrib.redirects` (Sébastien Corbin)
|
||||
* Adopt the update value `mp` instead of `mm` for 'mystery person' as the default Gravatar if no avatar found (Harsh Dange)
|
||||
|
||||
## Upgrade considerations - changes affecting all projects
|
||||
|
||||
|
|
|
@ -283,7 +283,7 @@ class TestAdaptMainMenuModule(WagtailTestUtils, DjangoTestCase):
|
|||
],
|
||||
{
|
||||
"name": user.first_name or user.get_username(),
|
||||
"avatarUrl": "//www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=100&d=mm",
|
||||
"avatarUrl": "//www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=100&d=mp",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -26,7 +26,7 @@ def user_can_delete_user(current_user, user_to_delete):
|
|||
|
||||
|
||||
def get_gravatar_url(email, size=50):
|
||||
default = "mm"
|
||||
default = "mp"
|
||||
size = (
|
||||
int(size) * 2
|
||||
) # requested at retina size by default and scaled down at point of use with css
|
||||
|
|
Ładowanie…
Reference in New Issue