Oliver Falk
b58c35e98b
Pillow 10.0.0 removed the ANTIALIAS alias.
2023-09-12 16:35:51 +02:00
Oliver Falk
ddfc1e7824
Experimental support for Animated GIFs
2022-12-05 16:16:40 +01:00
Seth Falco
cf65ea2c6a
fix: resolve backward compability in config
2022-09-15 17:03:06 +00:00
Seth Falco
2578e804b6
fix: validation for trusted urls
2022-07-16 07:36:12 +01:00
Oliver Falk
fe5f91bd66
Add stats about unconfirmed mail/openid + avatar count
2022-02-18 13:32:30 +01:00
Oliver Falk
7f10c239f9
Remove redundant all() before count()
2022-02-18 13:28:41 +01:00
Oliver Falk
40a5b06e25
Update the gravatar check - should be quicker and less error prone
2022-02-14 09:59:55 +01:00
Oliver Falk
0c3686beef
First preparations for Django >= 4.x
...
- Slight reformatting in some parts; Non-functional changes
- ugettext(_lazy) no longer available in Django > 4, changing to
gettext(_lazy)
- Since django-openid-auth doesn't work with Django > 4 yet, we need to
pin this project to Django < 4 until that issue is solved
2021-12-10 09:21:49 +01:00
Oliver Falk
ab56bf720a
String search returns > 0 if found...
2021-11-22 13:57:43 +01:00
Oliver Falk
ff9bfdefb5
Fix CWE-601 - Open URL redirection
...
- Only a few URLs are allowed now and this _will_ break some implementations
- Print information in the log about which URL was kicked
2021-11-22 13:17:20 +01:00
Oliver Falk
71a24737b4
Do not use 404 in case no default is set - we need to redir to the default Gravatar
2021-09-16 10:50:29 +02:00
Oliver Falk
030ea6fd33
Additional logging of gravatar fetches and ensure we don't send d=None, if default hasn't been set; Reformat with black
2021-09-16 10:38:53 +02:00
Oliver Falk
5733448830
Just default to sending JSON - everything else seems not to work correctly
2021-04-21 15:41:05 +02:00
Oliver Falk
b52244b167
We also need to handle 'text/html' this way
2021-04-21 15:29:16 +02:00
Oliver Falk
a346bc6285
JSON of course return json, but also normal web requests
2021-04-21 15:15:02 +02:00
Oliver Falk
8450f42a20
Implement simple stats feature
2020-12-30 13:41:04 +01:00
Oliver Falk
92035d7e15
Make pylint happier
2020-10-12 11:02:58 +02:00
Oliver Falk
feab5f6156
Fix pylint warnings
2020-05-06 13:11:21 +02:00
Oliver Falk
2535cefa6c
New avatar option mmng (Mistery Man Next Generation (NextGen). Related to #63
2020-04-21 16:07:53 +02:00
Oliver Falk
6bc0390b48
Fix some debug prints + HttpResponse for Gravatar
2020-03-04 15:11:05 +01:00
Oliver Falk
b463f9f95a
Add setting to easily be able to disable the response caching
2020-03-04 14:30:28 +01:00
Oliver Falk
476bddb21c
A caching HttpResponse in order to reduce the roundtrip (a lot)
2020-03-04 14:23:58 +01:00
Oliver Falk
07ba1c5a05
Cache some Gravatar results (failed fetch + default to reduce the number of requests and therfore roundtrip
2020-03-04 13:35:07 +01:00
Oliver Falk
b11495d0b6
In order to fix the reoccuring issue that OpenID users have to add several different OpenID variations, we'll save the usual variations now in different digest fields -> should ease the pain a lot
2020-02-25 14:37:03 +01:00
Oliver Falk
166582bc9d
Increase the max age, create separate option in config for it (CACHE_IMAGE_MAX_AGE). Issue #50
2019-03-08 13:49:09 +01:00
Oliver Falk
bb5358a267
Cache images (max-age=300)
2019-03-08 12:29:50 +01:00
Oliver Falk
3fcc3af64a
Merge branch 'http-options' into 'devel'
...
Implement HTTP OPTIONS request on /avatar
See merge request oliver/ivatar!128
2019-03-01 16:28:24 +01:00
Oliver Falk
79aac9dd45
Handle case if no digest is supplied - for !128
2019-03-01 15:31:35 +01:00
Tristan Le Guern
8e1d498501
Implement HTTP OPTIONS request on /avatar
...
Returns the list of allowed values for the default option.
2019-03-01 09:46:30 +00:00
Oliver Falk
8d1e32bb40
Regression from fixing #49 - fixing
2019-02-28 17:40:07 +01:00
Oliver Falk
60fbf93a4f
Make sure we do the pagan avatar in the right size
2019-02-28 17:15:04 +01:00
Oliver Falk
2d62e658e4
Implement the pagan lib (for fun)
2019-02-28 17:02:15 +01:00
Oliver Falk
f7f573e99d
Identicons are now generated by ivatar and switch retro to a more modern version - but only does 5x5 (like GitHub)
2019-02-28 12:21:02 +01:00
Oliver Falk
423bd2737e
Fix issue #46
2019-02-25 12:56:24 +01:00
Oliver Falk
54aba78e87
Leave generation of identicon/wavatar to Gravatar, until we have our own solution
2019-02-22 16:15:59 +01:00
Oliver Falk
ddae7a6fab
Make wavatar same as identicon/retro for the moment
2019-02-21 11:22:27 +01:00
Oliver Falk
bfaa79c0c4
Regression from fixing #45 . Closes #45 again.
2019-02-20 21:29:41 +01:00
Oliver Falk
154ed0c4f9
Make padding better, depending on the size; Fixes #48
2019-02-20 19:25:39 +01:00
Oliver Falk
deff15f0e3
Fixes issue #45 ; Carry along the default parameter to Gravatarproxy and further
2019-02-20 17:59:23 +01:00
Oliver Falk
3d22f6082e
Hack for fixing issue #30
2019-01-08 11:30:00 +01:00
Oliver Falk
7c1b821820
Use latest master tree on GitHub for robohash and allow to choose the set with robohash= (set1-3)
2018-12-03 16:17:33 +01:00
Oliver Falk
64f804b876
Fix some lint warnings, add Robohash (First shot, Issue #13 ) and make OpenId work again
2018-12-03 16:01:20 +01:00
Oliver Falk
51c863c94f
Add special view to proxy Gravatar (which is the default now if we do not have an image on our end). This proxying can be replaced by the frontend web server (Apache, NGINX), but helps now for dev. Alternatively we can redirect to Gravatar.
2018-11-30 14:26:20 +01:00
Oliver Falk
2643e11890
Only use the value if >0, Fixes issue #21
2018-11-23 12:54:12 +01:00
Oliver Falk
c6710052d2
Fix regression introduced by commit c3ed5fb0 (issue #18 - fixes issue #20
2018-11-16 12:08:11 +01:00
Oliver Falk
da6c0691dc
Address issue #19 , inconsistent padding size in relation to requested size + final image return is larger, since padding is added
2018-11-16 11:03:50 +01:00
Oliver Falk
0d404dc559
Return nobody instead of misteryman - as pointed out in issue #18 (fixed)
2018-11-16 10:51:08 +01:00
Oliver Falk
c3ed5fb014
Fix issue #17
2018-11-16 10:45:42 +01:00
Oliver Falk
a56b8af7a9
Track access counts and show them on mouseover
2018-11-12 13:30:50 +01:00
Oliver Falk
ec257a238e
Add mp as synonym for mm (for default)
2018-10-15 13:09:07 +02:00