[feature] Implement profile API (#2926)

* Implement profile API

This Mastodon 4.2 extension provides capabilities missing from the existing Mastodon account update API: deleting an account's avatar or header.

See: https://docs.joinmastodon.org/methods/profile/

* Move profile media methods to media processor

* Remove check for moved account
This commit is contained in:
Vyr Cossont
2024-05-29 03:57:44 -07:00
committed by GitHub
parent f9a4a6120d
commit 975e92b7f1
6 changed files with 405 additions and 1 deletions

View File

@ -119,7 +119,7 @@ func (c *Converter) ensureAvatar(account *apimodel.Account) {
account.AvatarStatic = avatar
}
// EnsureAvatar ensures that the given account has a value set
// ensureHeader ensures that the given account has a value set
// for the header URL.
//
// If no value is set, the default header will be set.