Commit graph

676 commits

Author SHA1 Message Date
Laura Hausmann
0f0726b172
[backend/core] Add comments for the magic following query constant & function 2024-04-19 02:06:42 +02:00
Laura Hausmann
28414a17fc
[backend/federation] Don't run webfinger validation passes when host matches with the previous step
Since queries against resources on the same domain would end up querying the exact same endpoint, these checks are redundant and do not add any security benefits.
2024-04-19 01:37:30 +02:00
Laura Hausmann
f185a061dc
[backend/federation] Improve local instance detection in WebFingerService 2024-04-19 01:21:12 +02:00
Laura Hausmann
e23fc63906
[backend/federation] Fall back to AP URI host on uri mismatch 2024-04-19 01:08:59 +02:00
Laura Hausmann
ebbec76cfe
[backend/federation] Resolve split domain user hosts exactly once (ISH-201)
This is necessary, since while the current version is handling split domain instances correctly, previous versions (for users who migrated from iceshrimp-js) may have not done so.
Since account domains never change, we only have to do this once.
2024-04-19 00:55:30 +02:00
Laura Hausmann
c38ff71791
[backend/database] Move emoji url generation to the Emoji entity 2024-04-18 20:46:46 +02:00
Laura Hausmann
333611f65e
[backend/federation] Send remote reacts as anonymous emoji objects, set correct id for local emoji reacts 2024-04-18 20:39:11 +02:00
Laura Hausmann
fe68c03428
[backend/database] Fail gracefully if initial migration is pending and database is not empty (ISH-265) 2024-04-18 18:51:07 +02:00
Laura Hausmann
8a48207957
[backend/database] Enforce local-only for authenticated visibility checks as well 2024-04-17 16:49:16 +02:00
Laura Hausmann
7529ebea72
[backend/federation] Don't register misskey reactions as likes 2024-04-17 00:09:46 +02:00
Laura Hausmann
40296b02f0
[backend/middleware] Move ContentEncodingNegotiator into WebApplicationBlazorFrameworkExtensions.cs 2024-04-16 23:54:29 +02:00
Laura Hausmann
d2e3a89046
[backend/middleware] Return 404 instead of 500 when framework file is not found 2024-04-16 23:52:34 +02:00
Laura Hausmann
5564f29b8b
[backend/middleware] Dynamically decompress brotli assets instead of storing uncompressed ones (ISH-264) 2024-04-16 22:20:29 +02:00
Laura Hausmann
5ba2e47426
[backend/core] Don't log AuthFetchExceptions in GetUpdatedUser 2024-04-16 18:38:48 +02:00
Laura Hausmann
933361b0c6
[backend/federation] Fetch featured notes as following user, if one is available (ISH-262)
This is the same logic Mastodon uses to ensure follower-only pinned notes can be resolved.
2024-04-16 18:19:29 +02:00
Laura Hausmann
08ced32e4d
[backend/federation] Enforce VerifiedFetch in ResolveNoteAsync instead of in calling methods (ISH-262) 2024-04-16 18:15:22 +02:00
Laura Hausmann
469f02c5ac
[backend/federation] Set VerifiedFetch in FetchNoteAsync (ISH-262) 2024-04-16 18:15:22 +02:00
Laura Hausmann
07f79ae77b
[backend/federation] Ensure pinned notes belong to the actor whose collection they're contained in 2024-04-16 02:50:29 +02:00
Laura Hausmann
450d859e19
[backend/startup] Move CLI argument parsing to the very beginning of the startup process
This allows --printconfig and --help to work correctly despite improper configuration / missing files.
2024-04-15 23:28:16 +02:00
Laura Hausmann
c25b613376
[backend/queue] Improve logging 2024-04-15 18:00:11 +02:00
Laura Hausmann
8fb7c8a93e
[backend/queue] Clear change tracker before saving the job state
This prevents a queue worker stall when a job fails to execute due to a database exception (leaving unsaved changes in the DbContext change tracker, preventing the job status from being set as failed)
2024-04-15 17:48:36 +02:00
Laura Hausmann
25282f6311
[backend/startup] Add help & printconfig cli arguments 2024-04-15 00:19:25 +02:00
Laura Hausmann
9c45107167
[backend/database] Move v2024.1-beta1 migrations into subfolder 2024-04-14 21:41:37 +02:00
Laura Hausmann
3b91baabf8
[backend/database] Prune .Designer.cs files in preparation of the v2024.1-beta1 release (ISH-119) 2024-04-14 21:29:20 +02:00
Laura Hausmann
90591db3c3
[backend/database] Add script to prune .Designer.cs migration files (ISH-119) 2024-04-14 21:26:58 +02:00
Laura Hausmann
88324bab3f
[backend/database] Make allowlist/blocklist imported flag optional (defaulting to false) 2024-04-14 19:01:31 +02:00
Laura Hausmann
806bfca099
[backend/core] Improve user deletes (ISH-222) 2024-04-10 20:53:50 +02:00
Laura Hausmann
ba351a459e
[backend] Fix ErrorHandlerMiddleware exception source logging 2024-04-10 00:52:01 +02:00
Laura Hausmann
c5bd380344
[backend] Improved debug logging (ISH-238) 2024-04-10 00:15:46 +02:00
Laura Hausmann
5c5e724fd3
[backend/middleware] Make validation errors compliant with (Mastodon)ErrorResponse schemas 2024-04-09 16:30:05 +02:00
Laura Hausmann
dfa6b5a5ae
[backend/swagger] More nullability fixup 2024-04-09 00:25:48 +02:00
Laura Hausmann
ae7cdf0f49
[backend/swagger] Mark all non-nullable schema properties as required 2024-04-09 00:12:27 +02:00
Laura Hausmann
4ff1b5f4c4
[backend] Implement streaming hub for timelines & notifications (ISH-244) 2024-04-08 20:45:30 +02:00
Laura Hausmann
60545e25ae
[backend/core] Fix sporadic "key not found" background task failures 2024-04-07 21:37:46 +02:00
Laura Hausmann
22a4de63f3
[backend/masto-client] Add & populate MastoReplyUserId column (ISH-247) 2024-04-07 21:07:04 +02:00
Laura Hausmann
969622bfc7
[backend/api] Return note descendants in tree form (ISH-242)
This also partially addresses thread ordering in the Mastodon client API.
2024-04-07 20:43:28 +02:00
Laura Hausmann
969efe6d73
[backend/federation] Fix redirect handling in ActivityFetcherService 2024-04-06 21:46:07 +02:00
Laura Hausmann
d6153beaeb
[backend/masto-client] Return replies to self (threads) on account statuses requests with excludeReplies param set 2024-04-06 18:24:18 +02:00
Laura Hausmann
66675146d9
[backend/signalr] Add authentication & authorization (ISH-244) 2024-04-03 21:46:05 +02:00
Laura Hausmann
7efb48a376
[backend/database] Fix UserProfile.Field jsonb property attributes 2024-04-03 15:17:52 +02:00
Laura Hausmann
8811e3c2b9
[frontend] Cleanup template assets, add placeholders 2024-04-01 21:24:29 +02:00
Laura Hausmann
6bc2b8d57c
[frontend] Bootstrap shared DTOs, API abstractions, SignalR & more 2024-04-01 20:22:45 +02:00
Laura Hausmann
62dde50af2
[backend/core] Support note filters (ISH-97) 2024-03-31 23:56:55 +02:00
Laura Hausmann
bde33e09bf
[backend/federation] Fix FetchActivityInternal exception
Newtonsoft.Json is sadly not compatible with pattern matching. We can revert this once we're using System.Text.Json for JSON-LD instead.
2024-03-31 18:34:22 +02:00
Laura Hausmann
b4152b7c3d
[backend/core] Stricter validation of activity identifiers (ISH-233) 2024-03-30 13:12:14 +01:00
Laura Hausmann
25a50ef9eb
[backend/core] Validate actor public key host 2024-03-30 13:12:14 +01:00
Laura Hausmann
cabe5d52e7
[backend/drive] Inhibit logging of unchanged files on user/note update (ISH-240) 2024-03-29 18:25:55 +01:00
Laura Hausmann
39de646a88
[backend] Fix null dereference 2024-03-29 16:16:25 +01:00
Laura Hausmann
ddfa108677
[backend/federation] Log type of unsupported undo activities 2024-03-29 16:11:40 +01:00
Laura Hausmann
07eba89fa0
[backend/queue] Fix BackgroundTaskJobData serialization 2024-03-29 16:08:04 +01:00