Commit graph

139 commits

Author SHA1 Message Date
Laura Hausmann
e6e9d75f1a
[backend/federation] Fix followers-only announce visibility checks (ISH-555)
This bug caused followers-only announce activities to be saved as specified when the activity actor was not inlined (which it is not in most cases), and the followers collection URI is not the well-known one.
2024-10-27 23:03:52 +01:00
Laura Hausmann
4dc021fcc4
[backend/federation] Fix ASObject.IsUnresolved regression 2024-10-24 20:30:34 +02:00
Laura Hausmann
1c2c958dfb
[backend/federation] Preload webfinger JSON-LD context definition 2024-10-24 19:27:10 +02:00
Laura Hausmann
df26db0585
[backend/federation] Add relay support (ISH-266) 2024-09-28 00:32:43 +02:00
Laura Hausmann
1d9864a214
[backend/federation] Handle incoming ASMove activities (ISH-118) 2024-09-23 00:21:57 +02:00
Laura Hausmann
162ddd496c
[backend/federation] Fix ASCollection deserialization 2024-09-15 04:26:56 +02:00
Laura Hausmann
58a86a231a
[backend/federation] Switch to ASObjectWithId instead of overriding Id in every class 2024-09-15 02:05:18 +02:00
Laura Hausmann
4081aeb036
[backend/federation] Fix deserialization of non-value ASCollectionPage objects in ASCollectionPageSerializer 2024-09-15 01:49:43 +02:00
Laura Hausmann
5042fab8df
[backend/federation] Fix deserialization of raw value types in ASSerializer 2024-09-15 01:49:43 +02:00
Kopper
d6a8282a18
[backend/federation] Try using the original collection object when possible 2024-09-15 01:49:42 +02:00
Kopper
5300aa069b
[backend/federation] Iterate over paginated collections 2024-09-15 01:47:41 +02:00
Kopper
ade4481ae9
[backend/federation] Attempt to make id optional for some object types 2024-09-15 01:47:41 +02:00
Kopper
481bd423b3
[backend/federation] Parse paginated collections correctly
This commit by itself will break parsing Mastodon Notes, since they
inline a CollectionPage without an ID, which Iceshrimp.NET can't cope
with.
2024-09-15 01:47:41 +02:00
Laura Hausmann
afe62b0aab
[sln] Code cleanup 2024-09-13 21:44:31 +02:00
Laura Hausmann
1204eee4b1
[backend/federation] Improve code quality regarding ASActor.WebfingerAddress 2024-09-09 21:54:12 +02:00
Laura Hausmann
4448f03e8b
[backend/federation] Fix XsdString handling during deserialization 2024-09-09 21:53:51 +02:00
Laura Hausmann
a60a17067a
[backend/federation] Fix JSON-LD compaction for ASActor.WebFingerXsd property 2024-09-09 21:44:32 +02:00
Laura Hausmann
0839c8936f
[backend/federation] Improve layout of the canonical Iceshrimp.NET JSON-LD context
This gets pruned and re-serialized before it gets placed in JSON responses anyway, so we might as well make it easier to read for development purposes.
2024-09-09 21:23:30 +02:00
Laura Hausmann
21b48789f9
[backend/federation] Expose Webfinger address in rendered ASActor objects for local users (FEP-2c59) 2024-09-09 21:08:31 +02:00
Kopper
2523f8a4d1 [backend/federation] Expose replies collection
Exposes the replies collection for local notes, allowing remote
instances to backfill replies when fetching our posts.
2024-09-09 19:20:10 +02:00
Laura Hausmann
6d5f7b5f4a
[backend/federation] Support ASLike activities with content instead of _misskey_reaction 2024-08-18 19:19:21 +02:00
Laura Hausmann
2f3408f3d7
[backend/federation] Implement quotes as object links (FEP-e232) 2024-08-18 17:54:44 +02:00
Laura Hausmann
d786d8976d
[backend/federation] Add manuallyApprovesFollowers to as-extensions 2024-08-14 00:20:52 +02:00
Laura Hausmann
acbedd3bae
[backend/federation] Support WebFinger reverse discovery (ISH-364)
This resolves federation issues with old versions of pixelfed, as well as various AP implementations that are not widely deployed.
2024-08-13 23:58:46 +02:00
Laura Hausmann
be9a0f95fa
[backend/federation] Fixup preloaded mastodon JSON-LD context
Credits to puck for spotting this one.
2024-08-13 03:15:28 +02:00
Laura Hausmann
097141a057
[backend/federation] Improve GTS compatibility fixes 2024-08-12 19:25:38 +02:00
Laura Hausmann
7484db23c5
[backend/federation] Fix GTS compatibility
Another day, another fedi software referencing an invalid/nonexistent context by link.
2024-08-12 19:10:05 +02:00
Laura Hausmann
807a6fc95d
[backend] Refactor dictionary initializers to use the new syntax 2024-08-12 03:21:03 +02:00
Laura Hausmann
8345f35a5f
[backend/federation] Fix (de-)serialization of unordered ASCollection(Page) objects (ISH-427) 2024-07-22 18:57:15 +02:00
Laura Hausmann
ae7fa0021c
[backend] Convert configuration and preloaded contexts into embedded resources 2024-07-09 15:13:43 +02:00
Laura Hausmann
0776a50cbe
[backend/asp] Refactor controllers
This commit aims to improve readability of MVC controllers & actions. The main change is the switch to custom [ProducesResults] and [ProducesErrors] attributes.
2024-07-06 17:12:22 +02:00
Laura Hausmann
df3a7bdfe5
[backend] Apply formatting rules 2024-06-29 01:06:19 +02:00
Laura Hausmann
2858f66ad4
[backend/federation] Make sure DateTime objects are being converted to Utc when (de)serializing activities 2024-06-26 16:53:21 +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
24bde5ad29
[backend] Use User.IsLocalUser / .IsRemoteUser instead of null-checks where applicable (ISH-370) 2024-06-17 17:25:29 +02:00
Laura Hausmann
80c9a35166
[backend/federation] Handle MFM in ASSource correctly
Some implementations (e.g. firefish) have dropped the _misskey_content property altogether. This improves MFM federation with those instances.
2024-06-07 20:18:03 +02:00
Laura Hausmann
dba4196655
[backend/core] Track poll votersCount for local & remote polls 2024-06-05 15:26:25 +02:00
Laura Hausmann
5e7eda1b9a
[backend/core] Fix ASTagConverter edge case 2024-05-31 20:21:08 +02:00
Laura Hausmann
a17da9d526
[backend/federation] Add missing entries to preloaded joinmastodon.org context 2024-05-04 19:50:11 +02:00
Laura Hausmann
3bf0f625d2
[backend/federation] Fix typo in preloaded schema.org context 2024-05-04 19:38:45 +02:00
Laura Hausmann
ead8e126f1
[backend/federation] Handle ASImage as ASAttachment
This fixes one of the issues in terms of federation with Pixelfed.
2024-04-28 03:54:34 +02:00
Laura Hausmann
0414c791e6
[backend/federation] Federate profile fields correctly 2024-04-28 02:02:48 +02:00
Laura Hausmann
385f5843f7
[backend/helpers] Rename LDHelpers.Compact(ASActivity) to LDHelpers.CompactToPayload 2024-04-24 04:05:26 +02:00
Laura Hausmann
20f72439c8
[backend/federation] Optimize iceshrimp context
Since we can't automatically strip unused IRI prefix aliases, it's more efficient to inline the ones with less than 3 usages.
2024-04-20 21:29:56 +02:00
Laura Hausmann
156735f40b
[backend/federation] Refactor LdHelpers, move contexts to non-nested directory, load contexts relative to assembly location instead of working directory 2024-04-19 23:44:01 +02:00
Laura Hausmann
8ff938639b
[backend/federation] Improve ASUpdate handling (ISH-223)
This fixes federation of note updates with some AP implementations
2024-03-25 13:51:50 +01:00
Laura Hausmann
c6300d1c96
[backend/core] Replace IDistributedCache with postgres k/v cache (ISH-212) 2024-03-23 19:10:27 +01:00
Laura Hausmann
a408fa247a
[backend] Code cleanup 2024-03-17 13:36:08 +01:00
Laura Hausmann
3a866d04dd
[backend/core] Federate blocks (ISH-169) 2024-03-14 15:58:13 +01:00
Laura Hausmann
a8d68ac1e6
[backend/core] Switch to ConcurrentDictionary for ContextCache, Separate ContextCache from PreloadedContexts, limit ContextCache to 20 entries (ISH-166) 2024-03-11 04:28:03 +01:00