Commit Graph

220 Commits

Author SHA1 Message Date
Georg Krause 150a9f68a4 fix(api): Use correct data field for rate limiting identity field
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2653>
2023-11-28 18:09:56 +00:00
Georg Krause 69876867d5 fix(embed): Make sure embed has sane default image and correct link
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2650>
2023-11-28 12:16:22 +00:00
Georg Krause 9d23d10e23 Adopt Gitpod to architecture changes 2023-10-13 10:12:05 +00:00
alextprog ccec8288ef fix: Make Artist ordering by name case insensitive
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2431>
2023-10-10 13:02:13 +02:00
Georg Krause afbaa49bb3 fix: Make sure to set right target when none is given
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2506>
2023-09-25 11:33:21 +00:00
jooola b20b33b838 style: Simplify code
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2506>
2023-09-25 11:33:21 +00:00
Georg Krause cb4c27dce0 feat(api): Add inplace_to_s3 management command
This command allows to update Uploads that originally were imported
using --in_place but are moved to s3. This command does not copy any
file, it just makes sure the files are read from S3 after they have been
moved.

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2506>
2023-09-25 11:33:21 +00:00
Georg Krause 59ecd8c6d4 fix(api): Fix misleading help texts for funkwhale-manage script
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2507>
2023-06-27 11:45:03 +00:00
Georg Krause a46c8e7f41 fix(api): Avoid the creation of users using djangos createsuperuser command 2023-06-12 09:36:52 +00:00
Georg Krause 6d7905f6a0
feat: allow the creation of random test notifications 2023-05-16 14:43:30 +02:00
jo 22c255700e
style: format code using black v23 2023-03-28 19:49:24 +02:00
jo 6528039e95 fix(api): pylint crashes on redefined-builtin
See https://github.com/PyCQA/pylint/issues/8079

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2203>
2023-01-29 12:47:02 +00:00
jo 14b5e137bd
feat: prefer using the funkwhale-manage entrypoint
This replaces `poetry run python3 manage.py` with `venv/bin/funkwhale-manage`.

Command running `venv/bin/funkwhale-manage` assume the current working directory is `/srv/funkwhale` on common deployments.

In the funkwhale api docker image, the funwhale-manage command line
interface is available globally.
2023-01-16 02:11:07 +01:00
jo efbdc027ab
fix: use versioned python3 instead of python 2023-01-13 16:55:05 +01:00
Ciarán Ainsworth 101b1b6a23 fix(api): Add href to protected attributes
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2312>
2022-12-29 17:25:30 +00:00
Georg Krause 0602de6d81
Merge branch 'stable' into develop 2022-11-25 18:10:45 +01:00
jo 054a9e54f5
docs: fix spelling errors (pre-commit) 2022-11-24 01:43:36 +01:00
jo 8d9946d35a refactor: upgrade code to >=python3.7 (pre-commit)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2189>
2022-11-23 22:08:55 +00:00
jo cff619679b
chore: format files using isort (pre-commit) 2022-11-23 21:55:37 +01:00
jo 4159bc1209 chore: format files using black (pre-commit) 2022-11-23 20:41:45 +00:00
Georg Krause 127a10f3d9 refactor(auth): Move check for verificated mail address to user class 2022-11-08 07:34:49 +00:00
JuniorJPDJ 64e7c68699 refactor(api): remove unnecessary or wrong `is` keyword usage 2022-11-07 13:28:52 +00:00
RenovateBot 6a787e8479 Update dependency djangorestframework to v3.14.0 (develop) NOCHANGELOG 2022-11-06 19:29:38 +00:00
Philipp Wolfer 6a91ea91b2
Ensure SPA HTML files get loaded with UTF-8 encoding
Fixes issues with wrong encoding of the "Loading Funkwhale…" text in index.html
2022-10-29 10:57:13 +02:00
Georg Krause 76eec47071 feat(manifest): Use proper Renderer class for spa manifest 2022-10-18 18:24:19 +00:00
Georg Krause b50191134a
fix(openapi): Make TextPreviewView extending GenericAPIView to allow spectacular to generate specs 2022-10-13 13:59:52 +02:00
Georg Krause 7a81df8ec1 fix(openapi): Add proper serialization for TextPreviewView 2022-10-12 12:03:37 +00:00
Georg Krause ff1a614861 Resolve "Refactor mutations endpoints" 2022-10-08 17:55:09 +00:00
wvffle c19b3d3545 Fix client API generation 2022-09-27 09:30:26 +00:00
wvffle c0b2c8d41e Fix black linting 2022-09-27 09:30:26 +00:00
wvffle 68face201b Rename operation ids 2022-09-27 09:30:26 +00:00
Marcos Peña 875a6ba2df Merge branch 'stable' into develop 2022-09-12 11:37:18 +02:00
wvffle 57693d85fc Allow anonymous access to gitpod 2022-09-06 09:26:36 +00:00
Georg Krause faf8bdcb81 Add a management command to create a new library for a user 2022-08-23 07:02:35 +00:00
Ciarán Ainsworth 570524a2bd Refactor rate-limit endpoint to use serializers 2022-08-14 18:20:28 +00:00
Ciarán Ainsworth d9cfa167c6 Fix OpenAPI generation 2022-07-20 12:31:57 +00:00
Marcos Peña 209e118882 Fix(subsonic): missing default order for search3 2022-07-19 15:16:00 +00:00
Kasper Seweryn 75a74b3ab7 Add support for debugging and testing python in gitpod 2022-07-17 02:06:25 +00:00
Petitminion b412e036a3 Update migration after django update (#1815) 2022-06-29 09:38:38 +00:00
petitminion 252ebf8ce7 Remove usage of deprecated Model and Serializer fields (#1663) 2022-01-23 10:52:41 +00:00
Georg Krause 850dc69091 Update Black & run for whole repository 2022-01-09 11:40:49 +00:00
Tony Wasserka 2173a592a0 Add br to the list of safe HTML tags 2021-08-28 19:13:33 +00:00
Blopware 0c8f4400b0
Sanitize remote tracks' saving locations with slashes on their names
For that case, the resulting saved file made use of these slashes to
store the tracks in subdirectories of federation_cache/xx/xx/xx, instead of
in the federation_cache/xx/xx/xx directory itself. As a consequence, the
tracks are downloaded in the wrong location, and upon any trial of
playing the tracks, funkwhale responds with the message
"The track cannot be loaded. You can have connectivity issues"

An example of a podcast with this kind of RSS items is located in
https://www.rtve.es/api/programas/2082/audios.rss

This commit overcomes this by a simple replacement of the offending
slashes to hyphens.
2021-05-09 17:51:45 +02:00
Georg Krause 88de997603
Remove JWT related code 2021-04-28 10:44:28 +02:00
Georg Krause c4664de41f
Add Middleware to trace memory usage 2021-04-12 20:20:39 +02:00
Christian Paul 0f0fd8e8dd Add missing space 2021-01-30 17:00:04 +01:00
Agate 712f471f10 Fix #1205: Added a new, large thumbnail size for cover images 2020-08-28 20:59:54 +02:00
Agate b1ae13ab0a Fixed full-text search 2020-08-27 11:31:13 +02:00
Agate ea83511d0a Plugins can now register .env settings 2020-08-25 09:55:57 +02:00
Agate 0c25370fff Fix #1196: Fixed broken search when using (, " or & chars 2020-08-23 17:55:26 +02:00