Laura Hausmann
ea8ff6495c
[backend/core] Fix editing of polls with no recorded votes
2024-05-16 18:56:04 +02:00
Laura Hausmann
1fae913a32
[backend/federation] Fix acceptance of poll vote activities without publishedAt
2024-05-16 18:55:46 +02:00
Laura Hausmann
2108f91bcf
[backend/drive] Store attachments as links if they can't be fetched for caching / further processing
2024-05-16 18:43:24 +02:00
Laura Hausmann
b76f154f50
[backend/drive] Don't hash files larger than the configured max cache size
2024-05-16 18:25:33 +02:00
Laura Hausmann
db9c4809dd
[backend/drive] Improve object storage migrator (ISH-326)
...
This commit fixes various bugs related to the object storage migrator.
- Files with a content length of zero bytes can now be migrated
- Deduplicated files now migrate correctly
- The database query no longer skips over files
2024-05-14 21:32:22 +02:00
Laura Hausmann
d7d7b7d2e3
[backend/drive] Improve error handling during DriveService.StoreFile
2024-05-14 20:09:14 +02:00
Laura Hausmann
23cf3cf35f
[backend/drive] Handle inconsistent file metadata during object storage migration
2024-05-14 20:07:37 +02:00
Laura Hausmann
97532c2b22
[backend/queue] Clean completed jobs in a cron task instead of doing it at job completion
...
This prevents database deadlocks that can occur when many jobs are being processed simultaneously.
2024-05-14 15:05:01 +02:00
Laura Hausmann
16fdc48800
[backend/drive] Set content-type when uploading media to object storage
2024-05-07 02:57:19 +02:00
Laura Hausmann
2519f382c5
[backend/federation] Include fully rendered renote target in rendered activity when renote user matches
2024-05-07 01:11:20 +02:00
Laura Hausmann
fe7d85fa91
[backend/core] Fix polls originating from masto-api
2024-05-06 23:40:47 +02:00
Laura Hausmann
b6304dc882
[backend/federation] Fix media being incorrectly classified as sensitive
...
Some AP implementations send an empty string as content warning when they mean no content warning, this is handled correctly by CreateNoteAsync and UpdateNoteAsync but wasn't respected in the attachment processing code paths. This commit resolves that issue.
2024-05-06 16:44:56 +02:00
Laura Hausmann
7f2ab15847
[backend/drive] Convert image to Srgb before further processing it for blurhash calculation when using LibVips
2024-05-03 18:14:51 +02:00
Laura Hausmann
3a2a6e47cf
[backend/core] Update pinned notes when the first local user follows a remote user
...
This allows us to fetch follower-only pinned notes immediately when they are available.
2024-05-02 21:15:43 +02:00
Laura Hausmann
fee5296cd9
[backend/core] Check for blocked instance early on user & note creation
2024-05-02 20:31:37 +02:00
Laura Hausmann
744a01d138
[backend/drive] Add several media processing configuration options, replacing constants & assumptions
2024-05-02 19:13:58 +02:00
Laura Hausmann
9a662f2bea
[backend/drive] Fix DriveService.StoreFile edge cases and make the code flow more clear/readable
2024-05-02 19:13:20 +02:00
Laura Hausmann
a2077244f8
[backend/drive] Make image processor pluggable
2024-05-01 21:44:49 +02:00
Laura Hausmann
8f822853e7
[backend/libmfm] Revert removal of unicode emoji detection in EmojiService
2024-05-01 16:54:05 +02:00
Laura Hausmann
12e77cfb64
[backend/libmfm] Drop support for the unicode emoji node type
2024-05-01 16:52:11 +02:00
Laura Hausmann
eab5e02b70
[backend/drive] Better error handling & logging
2024-05-01 01:44:52 +02:00
Laura Hausmann
7976854190
[backend/drive] Correctly set thumbnail & webpublicUrl when using the local storage provider
2024-05-01 01:21:08 +02:00
Laura Hausmann
facc7eb337
[backend/drive] Use libvips instead of imagesharp for most of the image processing pipeline
2024-05-01 01:21:08 +02:00
Laura Hausmann
d56eda8464
[backend/drive] Fix ImageSharp memory leak, improve image processing memory footprint, don't generate thumbnails for animated images
2024-04-30 20:40:46 +02:00
Laura Hausmann
dd062c6752
[backend/drive] Fix logExisting oversight causing uris not to be logged in all cases
2024-04-30 17:03:04 +02:00
Laura Hausmann
d31860dbb3
[backend/core] Track renote/reply uri for notes where the target is inaccessible at time of ingestion (ISH-287)
2024-04-30 00:15:58 +02:00
Laura Hausmann
fd0d6b4fea
[backend/core] Disallow quoting of notes with specified visibility
2024-04-29 16:03:28 +02:00
Laura Hausmann
fb6e0cf9f3
[backend/masto-client] Parse emoji in display name & fields on local user update (ISH-296)
2024-04-29 00:36:35 +02:00
Laura Hausmann
50cfc6df92
[backend/core] Limit renote visibility to the visibility of the original note (ISH-290)
2024-04-28 23:34:58 +02:00
Laura Hausmann
94ac11db88
[backend/drive] Add option to disable validation of the object storage configuration
2024-04-28 00:34:20 +02:00
Laura Hausmann
bc1e695193
[backend/masto-client] Don't deliver push notifications from blocked or muted notifiers (ISH-273)
2024-04-27 01:47:16 +02:00
Laura Hausmann
cf215b3d57
[backend/federation] Handle ASDelete activities of ASNote objects
...
Some implementations seem to send deletes of ASNote objects instead of ASTombstone objects.
2024-04-25 19:13:57 +02:00
Laura Hausmann
363b0c930c
[backend/core] Add Guid.ToStringLower() extension method
2024-04-25 18:26:42 +02:00
Laura Hausmann
40af9913b6
[backend/core] Handle emoji node for locally originating note create/update & user update events (ISH-271)
2024-04-25 17:35:38 +02:00
Laura Hausmann
e2a528c8a6
[backend/federation] Refactor AcceptAsync and FollowAsync for improved code reuse
2024-04-24 23:11:31 +02:00
Laura Hausmann
d060d076c1
[backend/core] Refactor DeleteNoteAsync and DeleteUserAsync for improved code reuse (ISH-239)
2024-04-24 21:43:45 +02:00
Laura Hausmann
10d1cb4768
[backend/core] Emit note edit notification for polls that have been voted in
2024-04-24 21:43:45 +02:00
Laura Hausmann
081f1ac646
[backend/core] Refactor NoteService for improved code reuse (ISH-239)
2024-04-24 21:43:45 +02:00
Laura Hausmann
95c7ff3d54
[backend/core] Fix follow requests getting re-added to the database after they are accepted
2024-04-24 20:46:15 +02:00
Laura Hausmann
58d78b568a
[backend/core] Fix remote renotes being registered without a URI
2024-04-24 03:32:05 +02:00
Laura Hausmann
36fe68ad4f
[backend/core] Set userHost to user.Host instead of null
...
This fixes remote renotes having their userHost set to null
2024-04-24 02:49:50 +02:00
Laura Hausmann
f9cc63a179
[backend] Add object storage migrator (ISH-30)
2024-04-23 01:23:34 +02:00
Laura Hausmann
adbee189af
[backend/configuration] Rename StorageSection.Mode to StorageSection.Provider
...
The old property remains for configuration backwards compatibility only. Trying to access it throws a compile-time error.
2024-04-22 23:26:29 +02:00
Laura Hausmann
1ce28ee005
[backend/drive] Add configuration option to set ACLs on files uploaded to object storage
2024-04-22 21:29:49 +02:00
Laura Hausmann
953b317738
[backend/drive] Switch to Iceshrimp.ObjectStorage
2024-04-22 21:10:51 +02:00
Laura Hausmann
a1b57c7295
[backend/core] Reject circular redirects in CustomHttpClient
2024-04-19 17:41:19 +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
7529ebea72
[backend/federation] Don't register misskey reactions as likes
2024-04-17 00:09:46 +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