Home | Notifications | New Note | Local | Federated | Search | Logout
Note Detail
fedicat@fedicat@pc.cafe (2026-06-25 00:46:51)
special case code to accommodate the new #mastodon profile api
```swift
// need profile api to set mastodon profile alt text
if await supportsProfile {
let _: Account = try await client.patch(ProfileOp.update, mp: params.multipart)
// need to call verifyCredentials to get full account instead of just profile
return try await getAccount()
} else {
```
---Reply---
nicole mikołajczyk@mkljczk@pl.fediverse.pl (2026-06-25 05:37:10)
@fedicat as of API version 11 you don’t need to use the new profile API to set avatar/header description
Reply
---Replies---
fedicat@fedicat@pc.cafe (2026-06-25 05:48:53)
@mkljczk Yeah, I saw you fixed that! I think I'll keep it around in case anyone is forever stuck on 4.6.0, and since I already went to the trouble of adding Profile, but so far I don't see the usefulness in this separation, I end p calling verify_credentials afterwards anyway to refresh the whole Account.