Commit Graph

46 Commits

Author SHA1 Message Date
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
Oliver Falk
b908316027 Add identicon and retro - the same for us at the moment 2018-10-15 13:06:56 +02:00
Oliver Falk
5557aa4bbf Fix use of explicit default=mm in params 2018-10-10 10:10:22 +02:00
Oliver Falk
1de1257a42 use default, not d, since d not in params of course 2018-10-10 09:48:53 +02:00
Oliver Falk
9a447bb858 Add monsterid functionality 2018-10-09 19:22:15 +02:00
Oliver Falk
d3a8ecae0c Add forcedefault/f option plus long options for default/size; Fixing issue #6 and #7. Remove some else trees, since we return in the if tree 2018-09-12 09:19:43 +02:00
Oliver Falk
a343813673 Handle case where s= and s=0 as reported in issue #4 2018-08-31 22:03:52 +02:00
Oliver Falk
52baa39bd0 Merge in photo_import 2018-07-11 11:07:30 +02:00
Oliver Falk
860f8cf555 Only a happy pylint is a good pylint 2018-07-11 10:13:47 +02:00
Oliver Falk
96237bb47e Ability to import from libravatar + import by email; Forms are WIP! 2018-07-10 14:46:30 +02:00
Oliver Falk
2ace37e981 Allow specifying default as get request parameter (as specified in the standard); Do not serve picture directly, but redirect to /static 2018-07-10 11:06:27 +02:00
Oliver Falk
14ee40f52c Return resized img, if/as requested and now also return default image (not yet as specified by the url parameters! 2018-07-09 15:21:24 +02:00
Oliver Falk
c959538619 Only a happy lint, is a good lint. 2018-07-03 13:15:34 +02:00
Oliver Falk
613e986290 Merge in stashed changes 2018-07-03 07:14:49 +02:00
Oliver Falk
24727f5591 OOps, need to check in the right model of course 2018-06-27 07:36:21 +02:00
Oliver Falk
a641c08961 Hack in sha256 support - needs to be refactored 2018-06-26 16:55:14 +02:00
Oliver Falk
32eb5afc26 WIP: Happy lint 2018-06-19 15:43:09 +02:00
Oliver Falk
6b615dba9e Catch if digest isn't there - WIP, since we do not send a default ATM 2018-05-25 11:21:29 +02:00
Oliver Falk
d780894d80 Error when trying to fetch with openid 2018-05-25 10:55:32 +02:00
Oliver Falk
cc511c98a1 PEP8 2018-05-23 10:35:51 +02:00
Oliver Falk
d855abac62 Match definition of overriden method, use request instead of self.request, since we now have it anywhere within the same context 2018-05-22 14:59:33 +02:00
Oliver Falk
7f4b82abe3 Fetch image via hash for OpenID and email 2018-05-22 14:41:42 +02:00