diff --git a/developer_manual/release_notes/previous/upgrade_to_25.rst b/developer_manual/release_notes/previous/upgrade_to_25.rst index 3c231a9235b..e8c087126b6 100644 --- a/developer_manual/release_notes/previous/upgrade_to_25.rst +++ b/developer_manual/release_notes/previous/upgrade_to_25.rst @@ -49,6 +49,28 @@ The `christophwurst/nextcloud `_ package. The content is the same and all older versions were generated, so you can transition right away no matter which versions you support. +Avatar generation and avatar URL changes +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Nextcloud 25 changed the behavior of generated avatars. + +If your app or integration requests avatar images directly, note the following: + +* Deprecated avatar sizes are normalized to supported sizes: + + * requests for sizes up to ``64`` return a ``64x64`` avatar + * requests for sizes above ``64`` return a ``512x512`` avatar + +* Dark theme variants of generated avatars are available through dedicated endpoints: + + * ``/avatar/{userId}/{size}/dark`` + * ``/avatar/guest/{guestName}/{size}/dark`` + +* Generated avatars may have a different appearance in dark mode than in light mode. + +Apps should not assume that arbitrary requested avatar sizes are returned unchanged. +If you need dark-mode aware generated avatars, use the ``/dark`` endpoints. + Removed APIs ^^^^^^^^^^^^