From c36f9ac37b8bbdeb4def7a20ba8ea6d6b7ad12d5 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:22:44 +0100 Subject: [feature] Account alias / move API + db models (#2518) * [feature] Account alias / move API + db models * go fmt * fix little cherry-pick issues * update error checking, formatting * add and use new util functions to simplify alias logic --- internal/api/model/source.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/api/model/source.go') diff --git a/internal/api/model/source.go b/internal/api/model/source.go index a2c78ac78..3b57f8565 100644 --- a/internal/api/model/source.go +++ b/internal/api/model/source.go @@ -38,4 +38,9 @@ type Source struct { Fields []Field `json:"fields"` // The number of pending follow requests. FollowRequestsCount int `json:"follow_requests_count"` + // This account is aliased to / also known as accounts at the + // given ActivityPub URIs. To set this, use `/api/v1/accounts/alias`. + // + // Omitted from json if empty / not set. + AlsoKnownAsURIs []string `json:"also_known_as_uris,omitempty"` } -- cgit v1.2.3