forgejo/services/federation
Panagiotis "Ivory" Vasilopoulos 81601eab85
Some checks are pending
/ release (push) Waiting to run
testing-integration / test-unit (push) Waiting to run
testing-integration / test-sqlite (push) Waiting to run
testing-integration / test-mariadb (v10.6) (push) Waiting to run
testing-integration / test-mariadb (v11.8) (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
feat(activitypub): use structure @PreferredUsername@host.tld:port for actors (#9254)
This modifies usernames of ActivityPub accounts to use the @example@example.tld
format with an additional optional port component (e.g. @user@example.tld:42).
This allows accounts from ActivityPub servers with more relaxed username
requirements than those of Forgejo's to interact with Forgejo. Forgejo would
also follow a "de facto" standard of ActivityPub implementations.

By separating different information using @'s, we also gain future
opportunities to store more information about ActivityPub accounts internally,
so that we won't have to rely on e.g. the amount of dashes in a username as
my migration currently does.

Continuation of Aravinth's work: https://codeberg.org/forgejo/forgejo/pulls/4778

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9254
Reviewed-by: jerger <jerger@noreply.codeberg.org>
Reviewed-by: Ellen Εμιλία Άννα Zscheile <fogti@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net>
Co-committed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net>
2026-01-30 23:45:11 +01:00
..
delivery_queue.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
error.go fix: assorted ActivityPub code only refactors (#8708) 2025-07-28 15:17:29 +02:00
federation_service.go feat(activitypub): use structure @PreferredUsername@host.tld:port for actors (#9254) 2026-01-30 23:45:11 +01:00
person_inbox_accept.go Sent user activities to distant federated server (#8792) 2025-08-06 16:16:13 +02:00
person_inbox_create.go Sent user activities to distant federated server (#8792) 2025-08-06 16:16:13 +02:00
person_inbox_follow.go Add ActivityPub Person follow from distant (#8720) 2025-08-03 11:55:01 +02:00
person_inbox_undo.go Add ActivityPub Person follow from distant (#8720) 2025-08-03 11:55:01 +02:00
person_service.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
repository_inbox_like.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
repository_service.go fix: assorted ActivityPub code only refactors (#8708) 2025-07-28 15:17:29 +02:00
result.go fix: assorted ActivityPub code only refactors (#8708) 2025-07-28 15:17:29 +02:00
signature_service.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
user_activity.go Sent user activities to distant federated server (#8792) 2025-08-06 16:16:13 +02:00