From 00e58c60cd59882199a7e378416a279de2b5212d Mon Sep 17 00:00:00 2001 From: tobi Date: Thu, 22 May 2025 12:34:39 +0200 Subject: [feature] Add ListenBrainz functionality on the web view (#4184) This pull request adds a very simple ad-hoc ListenBrainz widget to the frontend web view, with progressive enhancement (in all fail states it just falls back to rendering the field as normal). This necessitated adding the ListenBrainz API endpoint to the `connect-src` part of our Content-Security-Policy header. We might want to tweak this to only add that endpoint to `connect-src` for profiles, and then only for profiles that include a ListenBrainz field, but this would require significant dicking about with the middleware, and checks inside the app logic, such that it might not be worthwhile (after all, we control all the scripts right now anyway). Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4184 Co-authored-by: tobi Co-committed-by: tobi --- .../public/user-settings-listenbrainz-fields.png | Bin 0 -> 34371 bytes docs/overrides/public/user-settings-listenbrainz.png | Bin 0 -> 35869 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 docs/overrides/public/user-settings-listenbrainz-fields.png create mode 100644 docs/overrides/public/user-settings-listenbrainz.png (limited to 'docs/overrides') diff --git a/docs/overrides/public/user-settings-listenbrainz-fields.png b/docs/overrides/public/user-settings-listenbrainz-fields.png new file mode 100644 index 000000000..a54f2a232 Binary files /dev/null and b/docs/overrides/public/user-settings-listenbrainz-fields.png differ diff --git a/docs/overrides/public/user-settings-listenbrainz.png b/docs/overrides/public/user-settings-listenbrainz.png new file mode 100644 index 000000000..51f53d1eb Binary files /dev/null and b/docs/overrides/public/user-settings-listenbrainz.png differ -- cgit v1.2.3