Closed brunobastosg closed 1 year ago
This bug hit our instance in production, I can confirm that this PR fixes it.
However, it is not backwards compatible - the new method signature appeared in django-avatar 7.0.0.
I suggest we also change that in askbot_requirements.txt
: django-avatar>=4.0
=> django-avatar>=7.0
This bug hit our instance in production, I can confirm that this PR fixes it.
However, it is not backwards compatible - the new method signature appeared in django-avatar 7.0.0. I suggest we also change that in
askbot_requirements.txt
:django-avatar>=4.0
=>django-avatar>=7.0
Thanks, I forgot about that. Updated the PR with your suggestion.
Error was introduced when django-avatar added support for rectangular avatars
Previously, method
get_primary_avatar
accepted only thesize
argumentNow, it has two args:
width
andheight
.I took the simpler approach of assuming the avatars are always a square.
Ref: https://github.com/jazzband/django-avatar/commit/99a979b057e0a099eb1149eaac0956ce7a4b4fde
Closes #927