Commit graph

1004 commits

Author SHA1 Message Date
pancakes
84190fe489 [backend/api] FIx UpdateLocalEmoji and prevent duplicate emoji names 2024-06-23 13:42:33 +02:00
pancakes
51c5ab30cc [backend/api] Refactor UploadEmoji 2024-06-23 13:42:33 +02:00
pancakes
74f094217f [backend/api] Refactor UpdateEmoji 2024-06-23 13:42:33 +02:00
Laura Hausmann
e971a781e6
[backend/queue] Don't reset RetryCount for manually retried jobs 2024-06-23 13:30:31 +02:00
Laura Hausmann
259a21b273
[backend/database] Fix possible stall / race condition on first startup in EntityFrameworkCoreXmlRepositoryAsync 2024-06-23 00:54:34 +02:00
Laura Hausmann
3bf933782a
[backend/federation] Ignore duplicate renote activities 2024-06-22 02:26:18 +02:00
Laura Hausmann
74b2f69b0c
[backend/razor] Add retry job functionality to queue dashboard 2024-06-22 02:17:35 +02:00
Laura Hausmann
728a33c819
[backend/federation] Improve WebFinger algorithm 2024-06-22 01:41:33 +02:00
Laura Hausmann
f724a55901
[backend/core] Improve logging 2024-06-22 01:17:40 +02:00
Laura Hausmann
07f0223c99
[backend] Code cleanup 2024-06-21 22:06:28 +02:00
Laura Hausmann
9ac2284dd5
[backend/razor] Refactor queue dashboard job view to better accommodate different job data formats 2024-06-21 21:08:40 +02:00
Laura Hausmann
2e536bcd47
[backend/core] Refactor GetOrCreateSystemUserAsync 2024-06-21 20:15:36 +02:00
Laura Hausmann
dd3ea49367
[backend/core] Fix edge case in GetOrCreateSystemUserAsync 2024-06-21 20:13:24 +02:00
Laura Hausmann
3599150603
[backend/database] Add Exception column to Job table 2024-06-21 19:18:31 +02:00
Laura Hausmann
8d14b04821
[backend/core] Attach user entity to database change tracker in GetOrCreateSystemUserAsync
This prevents erroneous insert attempts when the data comes from the cache instead of the database.
2024-06-21 17:20:12 +02:00
Laura Hausmann
b23348cde9
[backend/core] Add AsyncKeyedLocker to SystemUserService 2024-06-21 17:01:53 +02:00
Laura Hausmann
3e0a5b5759
[backend/configuration] Allow configuring of parameter logging for database exceptions 2024-06-21 16:24:03 +02:00
Laura Hausmann
f2e4d11ce4
[backend/configuration] Fix typo(s) that was causing JobRetention settings not to be applied correctly 2024-06-21 16:11:07 +02:00
Laura Hausmann
596980eb84
[backend/core] Make sure GetOrCreateSystemUserAsync calls username.ToLowerInvariant 2024-06-21 16:04:36 +02:00
Laura Hausmann
9319dc22c9
[backend/core] Refactor NumberExtensions 2024-06-21 16:02:40 +02:00
Laura Hausmann
32d6cb555d
[backend/configuration] Allow configuring of queue job retention 2024-06-21 14:42:00 +02:00
Laura Hausmann
a253e83176
[backend/federation] Refactor ActivityRenderer 2024-06-21 14:28:29 +02:00
Laura Hausmann
efa2cdc9c7
[backend/federation] Populate to/cc fields correctly for outgoing Notes 2024-06-21 14:27:12 +02:00
Laura Hausmann
0c59081aee
[backend/federation] Add JsonIgnore attributes to internal properties to prevent them from being written to the job table unnecessarily 2024-06-21 14:14:22 +02:00
Laura Hausmann
19c9b7bf90
[backend/database] Add StackTrace column to Job table 2024-06-21 14:05:34 +02:00
Laura Hausmann
503b8c5985
[backend/razor] Render display durations >1000ms properly on queue dashboard 2024-06-21 13:57:15 +02:00
Laura Hausmann
2e562b04d8
[backend/razor] Make queue dashboard use ToDisplayStringTz instead of ToStringIso8601Like for rendering date/time strings 2024-06-21 04:26:21 +02:00
Laura Hausmann
f5c0cc9a38
[backend/database] Add migration that fixes up poll voter counts using the new algorithm (ISH-377) 2024-06-20 20:05:51 +02:00
Laura Hausmann
7f14c3df81
[backend/core] Improve handling of voter counts in PollService (ISH-377) 2024-06-20 20:01:08 +02:00
Laura Hausmann
5857e9ec7d
[backend] Fix typo 2024-06-20 18:29:34 +02:00
Laura Hausmann
978a19d6b1
[backend/logging] Improve logging in ErrorHandlerMiddleware further 2024-06-20 18:25:15 +02:00
Laura Hausmann
d94ccaceaa
[backend/logging] Log suppressed logs with trace loglevel 2024-06-20 18:18:18 +02:00
Laura Hausmann
eb167cf482
[backend/federation] Check for Instance.IsSuspended in PreDeliverQueue for ASFollow activities
We're not currently using that property, but we may in the future.
2024-06-19 18:37:43 +02:00
Laura Hausmann
9dbc7cfc14
[backend/federation] Filter skipped & blocked instances in PreDeliverQueue (ISH-366)
This:
- improves performance (because we can check them in batches)
- improves efficiency (because we don't create deliver jobs that get discarded immediately)
- allows us to check whether the activity is an ASFollow & let it through if it is (for skipped instances filter only)

We still check for blocked instances in the deliver queue in case a deliver job is created via another code path.
2024-06-19 17:37:57 +02:00
Laura Hausmann
c4763e9c67
[backend/database] Fix Note.IsQuote not handling cw-only renotes correctly 2024-06-19 14:05:28 +02:00
Laura Hausmann
0bbdbbe7f3
[backend/database] Remove unused db function reference 2024-06-19 14:04:13 +02:00
Laura Hausmann
1d262ab326
[backend/federation] Pass inboxUserId on to ProcessNoteAsync/ResolveNoteAsync for ASBite and ASCreate activities 2024-06-17 22:08:24 +02:00
Laura Hausmann
752161d7db
[backend/core] Refactor QueryableFtsExtensions 2024-06-17 20:41:09 +02:00
Laura Hausmann
1d02bd7119
[backend/core] Add in:interactions search query filter, allow multiple from: filters 2024-06-17 20:41:09 +02:00
Laura Hausmann
24bde5ad29
[backend] Use User.IsLocalUser / .IsRemoteUser instead of null-checks where applicable (ISH-370) 2024-06-17 17:25:29 +02:00
Laura Hausmann
fc7a1fe95c
[backend/federation] Make sure new follow & unfollow activities have a consistent identifier (ISH-367) 2024-06-17 17:16:27 +02:00
Laura Hausmann
95592df2ca
[backend/core] Don't create reply notifications on note update
This prevents erroneous duplicate notifications from being created.
2024-06-16 23:36:39 +02:00
Laura Hausmann
0a5e130783
[backend/federation] Log instance blocked failures in inbox queue as debug 2024-06-16 22:36:38 +02:00
Laura Hausmann
bc270d4fed
[backend/logging] Cleanup unused variable 2024-06-16 22:03:33 +02:00
Laura Hausmann
e089184c63
[backend/logging] Improve systemd logging 2024-06-16 22:01:17 +02:00
Laura Hausmann
0f4cc675d5
[backend/logging] Fix typo 2024-06-16 21:58:10 +02:00
Laura Hausmann
47ab95cc1b
[backend/queue] Remove trace logging 2024-06-16 21:56:56 +02:00
Laura Hausmann
10d40513d3
[backend/logging] Render syslog severity indicator for every line of multi-line log messages in systemd mode 2024-06-16 21:55:17 +02:00
Laura Hausmann
db76a722db
[backend/logging] Fix typo 2024-06-16 21:46:30 +02:00
Laura Hausmann
2c2f350d21
[backend/logging] Correctly log multi-line logs in systemd mode 2024-06-16 21:45:00 +02:00