Commit Graph

64 Commits

Author SHA1 Message Date
Oliver Falk
493f9405dd Play around with AI avatars - nothing serious yet 2025-09-17 13:55:12 +02:00
Oliver Falk
b69f08694a We don't need that debug statement any more 2025-09-15 14:40:15 +02:00
Oliver Falk
f7d72c18fb This is creating a lot of noise and caching now anyway happens more on Apache side - use debug logging 2025-09-13 18:20:22 +02:00
Oliver Falk
919ed4d485 We need to check if we already have an ID 2025-05-24 16:30:21 +02:00
Oliver Falk
cb7328fe23 Initial shot at invalidating the cache entry - to be confirmed to work (read: TODO) 2025-05-24 16:16:00 +02:00
Oliver Falk
e90604a8d3 Code cleanup/refactoring 2025-02-10 16:54:28 +01:00
Oliver Falk
4a892b0c4c Lots of code cleanup, no functionality change 2025-02-10 13:27:48 +01:00
Oliver Falk
488206f15b Some fixes for normalizing Bluesky handle + better error catching 2025-02-08 15:07:35 +01:00
Oliver Falk
94b0fc2068 New field bluesky_handle in both main models 2025-01-31 12:44:11 +01:00
Oliver Falk
7559ddad6e Refactor: Centralize URL handling and add Bluesky integration
- Centralize urlopen functionality in utils.py with improved error handling
- Add configurable URL timeout across the project
- Introduce Bluesky client for fetching avatar from there (TBC)
- Support SSL verification bypass in debug mode

Signed-off-by: Oliver Falk <oliver@linux-kernel.at>
2025-01-25 13:16:04 +01:00
Oliver Falk
c2145e144f All file formats are 3 letters, but WEBP is 4, need to adjust - Closes #97 2024-05-31 17:03:00 +02:00
Oliver Falk
b58c35e98b Pillow 10.0.0 removed the ANTIALIAS alias. 2023-09-12 16:35:51 +02:00
Oliver Falk
ba6f46c6eb Webp support 2022-12-05 15:56:12 +00:00
Oliver Falk
9dceb7a696 Some jpgs are recognized as MPO (basically jpg with additional data 2022-11-30 11:50:29 +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
f288a97bad Fix trailing whitespace and reformat with black 2021-09-15 11:27:15 +02:00
Oliver Falk
c5f493178c Fix overwriting verification key upon sending confirmation mail 2021-04-15 13:13:23 +02:00
Oliver Falk
334da91881 Add date with last try to send mail and the status 2021-04-13 11:08:17 +02: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
c5c4b73208 Further debugging 2020-02-24 15:47:27 +01:00
Oliver Falk
66dd8f3f10 Keep check for jpeg (#49) 2019-02-28 17:44:56 +01:00
Oliver Falk
8d1e32bb40 Regression from fixing #49 - fixing 2019-02-28 17:40:07 +01:00
Oliver Falk
c977411309 Fix issue #49 2019-02-28 14:14:10 +01:00
Oliver Falk
b5b6fbfc3f Correct verbose name/plural name for unconfirmed email 2019-02-18 13:06:12 +01:00
Oliver Falk
c38106cb11 Fix issues with msgid format string 2019-02-18 10:26:13 +01:00
clime
3fda33b6f6 enable setting SERVER_EMAIL from env, use DEFAULT_FROM_EMAIL for send_mail
From documentation for DEFAULT_FROM_EMAIL:

Default email address to use for various automated correspondence from the site manager(s).
This doesn’t include error messages sent to ADMINS and MANAGERS; for that, see SERVER_EMAIL.

That means it makes sense to make SERVER_EMAIL and DEFAULT_FROM_EMAIL separate settings and
not set one from another.
2019-02-10 19:36:43 +01:00
Oliver Falk
bc9730450c Move falko to green and add red theme (because we can) 2018-12-03 15:24:16 +01:00
Oliver Falk
c4a8d2e640 Use max avatar size for import 2018-11-30 14:23:52 +01:00
Oliver Falk
cf4974f24d Slash at the end of OpenId is not a must, remove it 2018-11-23 12:46:10 +01:00
Oliver Falk
a56b8af7a9 Track access counts and show them on mouseover 2018-11-12 13:30:50 +01:00
Lars Kruse
96d375cdaf Fix more "invalid-name" pylint overrides 2018-07-27 04:41:11 +02:00
Lars Kruse
b07f413034 Reduce occurrences of bare exceptions
* replace bare exceptions with specific ones, if possible
* use "exc" instead of "e" as exception variable
  ("exc" is the most popular choice in the standard library)
2018-07-27 04:41:11 +02:00
Lars Kruse
a06b61b054 Fix spelling mistakes (reported by 'codespell')
Sadly "codespell" does not seem to be available in Centos, thus it is
not enabled in the gitlab CI.
2018-07-27 04:40:44 +02:00
Lars Kruse
4646a9ce7a Fix style issues (reported by flake8)
* unused imports
* whitespace
* indentation
2018-07-27 04:40:39 +02:00
Oliver Falk
f4524961cd Feature 'Import libravatar export (mails + photos)' 2018-07-12 15:00:59 +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
8a877aac9f Merge branch 'master' into 'master'
clime theme added

See merge request oliver/ivatar!35
2018-07-09 15:47:33 +02:00
clime
2d15dccdd0 climes theme added 2018-07-09 15:23:04 +02:00
Oliver Falk
1bf2eb1e43 Move some methods to staticmethods, since not object dependent and add some __str__ functions in order to easier identify which objects it is and to whom it belongs (admin only) 2018-07-09 13:30:17 +02:00
Oliver Falk
1f03c66944 Feature: Userpreferences 2018-07-05 14:11:52 +02:00
Oliver Falk
af9949f9db Forgot to import MAX_LENGTH_URL, now that it's no longer defined here 2018-07-03 13:25:04 +02:00
Oliver Falk
c959538619 Only a happy lint, is a good lint. 2018-07-03 13:15:34 +02:00
Oliver Falk
1a08887892 Add functionality to check OpenID/mail; Size already works, default URL not (yet) 2018-07-03 10:58:03 +02:00
Oliver Falk
e7d80d0b57 Typo 2018-06-27 09:35:17 +02:00
Oliver Falk
8efbcc7ebc Avoid deleting photo cascades and deletes mail/openid and make sure digest_sha256 may not be null (needs migration 0007) 2018-06-27 08:30:18 +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
6a4fce0177 Feature 'crop photo' 2018-06-14 14:20:10 +02:00