Commit graph

1992 commits

Author SHA1 Message Date
pancakes
6322d5fb91
[backend/api] Add conflict check to UpdateFileParent 2025-02-05 18:03:27 +01:00
pancakes
87b686e5cb
[backend/api] Set appropriate values for IsAvatar and IsBanner in GetAvatar and GetBanner 2025-02-05 18:03:26 +01:00
pancakes
bc7745c9fc
[backend/api] Clone files that exist in different folders owned by the same user instead of creating copies 2025-02-05 18:03:26 +01:00
pancakes
59c26686e4
[backend/api] Use SuppressMessage attribute instead of pragma warning disable 2025-02-05 18:03:26 +01:00
pancakes
805393b3e5
[backend/api] Fix drive folder endpoint 2025-02-05 18:03:26 +01:00
pancakes
85e24e03f1
[backend/api] Add conflict check when creating folders 2025-02-05 18:03:26 +01:00
pancakes
72800a68e8
[backend/api] Improve DriveFolder existing check 2025-02-05 18:03:26 +01:00
pancakes
8b54228d44
[backend/api] Order DriveFiles in folder by CreatedAt descending and DriveFolders by Name ascending 2025-02-05 18:03:25 +01:00
pancakes
038637339e
[backend/api] Add endpoint to move DriveFile and change move DriveFolder to POST 2025-02-05 18:03:25 +01:00
pancakes
da6d080fa2
[backend/api] Use FromHybrid instead of query for UpdateFolder 2025-02-05 18:03:25 +01:00
pancakes
b6047c9dc1
[backend/api] Add IsAvatar and IsBanner to DriveFile 2025-02-05 18:03:25 +01:00
pancakes
42da7e5f43
[backend/api] Add endpoint to delete non-empty folders 2025-02-05 18:03:24 +01:00
pancakes
d0477743e6
[backend/api] Add endpoints for renaming and moving drive folders 2025-02-05 18:03:24 +01:00
pancakes
078f344a26
[backend/services] Only check for duplicate files in the same folder if specified 2025-02-05 18:03:24 +01:00
pancakes
98686e334e
[backend/api] Allow optionally storing a drive file in a specified folder 2025-02-05 18:03:23 +01:00
pancakes
59e1cdde81
[backend/api] Add endpoint for creating drive folders 2025-02-05 18:03:22 +01:00
pancakes
a2e3c475d0
[backend/api] Correctly return file ID for drive folder files 2025-02-05 18:03:22 +01:00
pancakes
76054927f7
[backend/api] Add endpoints to get root drive folder and drive folder by ID 2025-02-05 18:03:22 +01:00
Laura Hausmann
60f100385d
[backend/drive] Fix explicit identicon references 2025-02-04 16:38:28 +01:00
pancakes
220d65fa3d
[backend/api] Remove unnecessary database query 2025-02-04 13:39:04 +01:00
pancakes
9ac80f3945
[backend/api] Recursively reload user after refetching 2025-02-04 13:39:04 +01:00
pancakes
4ceeebc40d
[backend/api] Add refetch user endpoint 2025-02-04 13:39:03 +01:00
pancakes
c6ac156b34
[backend/services] Make verification page size limit more readable 2025-02-04 13:02:44 +01:00
pancakes
01799a84cd
[backend/services] Ignore pages over 1MB when verifying links 2025-02-04 13:02:44 +01:00
pancakes
4fe3fe8d2c
[backend/services] Move profile field verification into background-task queue 2025-02-04 13:02:44 +01:00
pancakes
9d0cb44743
[backend/services] Also check user URI for local users when verifying links 2025-02-04 13:02:44 +01:00
pancakes
aa3262caea
[backend/services] Check for profile URL and user URI when verifying links 2025-02-04 13:02:44 +01:00
pancakes
858a7724a2
[backend/services] Verify user profile field links 2025-02-04 13:02:43 +01:00
Kopper
7595f257f8 [backend/masto-client] Use List<> instead of HashSet<> for batch endpoints
CustomCollectionModelBinder's `as IList` cast does not work for HashSet,
breaking the code around trailing []s in query arguments.

The values are still being treated as a set in the query so adding the
same value multiple times shouldn't do anything except hit the max limit
quicker.

The intention was to aid clients which may not be doing their own
deduplication but I haven't really observed that behavior in the wild
and I doubt it's anything too much to expect from clients.

That said, testing on mastodon.social shows Mastodon itself may be doing
deduplication here before checking the limit, though I'm not entirely sure
if this will ever be noticed in the wild.
2025-02-04 10:19:24 +03:00
Laura Hausmann
ab0b1e543a
[backend/csproj] Exclude wwwroot/assets/LICENSE.md from build 2025-02-02 22:59:57 +01:00
Laura Hausmann
bed17be21f
[backend/assets] Improve LICENSE.md 2025-02-02 22:56:34 +01:00
Laura Hausmann
44ab441c3d
[backend/assets] Clarify license 2025-02-02 22:55:49 +01:00
Laura Hausmann
be1e393140
[sln] Update dependencies 2025-02-01 13:18:02 +01:00
Laura Hausmann
8ff9aea33a
[sln] Code cleanup 2025-01-31 16:58:57 +01:00
Laura Hausmann
045ce709aa
[backend] Switch to Iceshrimp.EntityFrameworkCore.Extensions 2025-01-31 16:56:11 +01:00
pancakes
24e7624487
[backend/api] Fix profile avatar and banner endpoints 2025-01-30 11:11:23 +01:00
pancakes
dff87e9db5
[backend/api] Move Avatar and Banner queries onto single lines 2025-01-30 11:11:23 +01:00
pancakes
78550aa878
[backend/api] Simplify Avatar and Banner queries 2025-01-30 11:11:23 +01:00
pancakes
fa7c09c94b
[backend] Fix outgoing alt text federation 2025-01-30 11:11:23 +01:00
pancakes
58d10228e9
[backend/api] Move newAvatarAlt and newBannerAlt into UserProfileEntity 2025-01-30 11:11:23 +01:00
pancakes
811c5d7a46
[backend/api] Simplify queries for getting avatar and banner when updating profile 2025-01-30 11:11:23 +01:00
pancakes
f40c0e2499
[backend/api] Simplify GetAvatar and GetBanner database queries 2025-01-30 11:11:22 +01:00
pancakes
b9cb72475d
[backend/api] Remove debug prints 2025-01-30 11:11:22 +01:00
pancakes
d4efbfd2ce
[backend/api] Allow optionally setting avatar and banner alt text 2025-01-30 11:11:22 +01:00
pancakes
cd412e3056
[backend/api] Return DriveFileResponse for avatar and banner 2025-01-30 11:11:22 +01:00
pancakes
4d39f657b0
[backend/api] Include AvatarAlt and BannerAlt in UserResponse 2025-01-30 11:11:22 +01:00
pancakes
a5fedc930c
[backend/federation] Include media type for avatar and banner in UserRenderer 2025-01-30 11:11:22 +01:00
pancakes
68ceecd8f1
[backend/services] Use ASImage.Description to set DriveFile.Comment for resolved users' avatar and banner 2025-01-30 11:11:21 +01:00
pancakes
fdadc41c61
[backend/federation] Include alt text for avatar and banner in UserRenderer 2025-01-30 11:11:21 +01:00
pancakes
207249280f
[backend/razor] Update table class and include action separators 2025-01-30 11:09:27 +01:00