akkoma/test/pleroma/web/activity_pub
Oneric caf6b4606f Fix representaton of internal actors
CUrrently internal actors are supposed to be identified in the database
by either a NULL nickname or a nickname prefixed by "internal.". For old
installations this is true, but only if they were created over five
years ago before 70410dfafd.
Newer installations will use "relay" as the nickname of the realy actor
causing ii to be treated as a regular user.

In particular this means all installations in the last five years never
made use of the reduced endpoint case, thus it is dropped.

Simplify this distinction by properly marking internal actors asa an
Application type in the database. This was already implemented before by
ilja in https://akkoma.dev/AkkomaGang/akkoma/pulls/457 but accidentally
reverted during a translation update in
eba3cce77b. This commit effectively
restores this patch together with further changes.

Also service actors unconditionally expose follow* collections atm,
eventhough the internal fetch actor doesn't actually implement them.
Since they are optional per spec and with Mastodon omitting them too
for its instance actor proving the practical viability, we should just
omit them. The relay actor however should continue to expose such
collections and they are properly implemented here.
Here too we now just use the values or their absence in the database.

We do not have any other internal.* actors besides fetch atm.

Fixes: https://akkoma.dev/AkkomaGang/akkoma/issues/855

Co-authored-by: ilja space <git@ilja.space>
2025-03-26 17:14:28 +01:00
..
mrf Don't spam logs about deleted users 2025-01-07 20:27:28 +01:00
object_validators Fix tests 2024-08-11 14:59:10 +02:00
side_effects Change user.deactivated field to user.is_active 2021-01-15 11:24:46 -06:00
transmogrifier add_remove_validator: limit refetch rate to 1 per 5s 2025-01-07 20:27:27 +01:00
views Fix representaton of internal actors 2025-03-26 17:14:28 +01:00
activity_pub_controller_test.exs bump version 2025-03-01 16:36:04 +00:00
activity_pub_test.exs Purge obsolete ap_enabled indicator 2025-01-07 20:27:26 +01:00
builder_test.exs turn inlineQuotePolicy on by default 2022-09-05 17:22:33 +01:00
internal_fetch_actor_tests.exs Fix representaton of internal actors 2025-03-26 17:14:28 +01:00
mrf_test.exs Fix create processing in direct message disabled 2023-05-23 13:16:20 +01:00
pipeline_test.exs Refactor ES on top of search behaviour 2022-06-30 16:28:31 +01:00
publisher_test.exs Purge obsolete ap_enabled indicator 2025-01-07 20:27:26 +01:00
relay_test.exs Fix representaton of internal actors 2025-03-26 17:14:28 +01:00
side_effects_test.exs Don't enqueue a plethora of unnecessary NodeInfoFetcher jobs 2025-01-07 20:27:27 +01:00
transmogrifier_test.exs federation: strip internal fields from incoming updates and history 2025-02-21 19:37:27 +01:00
utils_test.exs Don't persist local undone follow (#194) 2022-08-31 18:00:36 +00:00
visibility_test.exs mix format 2022-06-22 17:20:55 +01:00