<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ActivityPub - How to send an updated user profile to Mastodon and the Fediverse]]></title><description><![CDATA[<h2>ActivityPub - How to send an updated user profile to Mastodon and the Fediverse</h2>
<a href="https://shkspr.mobi/blog/2026/09/activitypub-how-to-send-an-updated-user-profile-to-mastodon-and-the-fediverse/" rel="nofollow noopener noreferrer"><span>https://</span><span>shkspr.mobi/blog/2026/09/activ</span><span>itypub-how-to-send-an-updated-user-profile-to-mastodon-and-the-fediverse/</span></a>

<p>Let's suppose you've updated the description of your ActivityPub account from "World's Number 1 Taylor Swift Fan" to "This account is now a Nickleback Truther". How do you let the rest of the Fediverse know that you've changed your allegiance?</p><p>By default, most Mastodon instances won't periodically poll your account information just to see if you've updated it. So how does the information get from your server to your followers' servers?</p><p>This wasn't immediately obvious to me, but I got a clue from reading <a href="https://shkspr.mobi/blog/2026/09/book-review-activitypub-by-evan-prodromou/">Evan Prodromou's book on ActivityPub</a>:</p><blockquote><p>The Update activity type is for updating the properties of an object represented by the object property.</p><p>The most common types of objects that can be updated are content objects, like Note or Image. Actor types (like Person) and Question activity types can also be updated.</p></blockquote><p>Aha!</p><p>You need to craft an <code>Update</code> message which has as its object the <em>new</em> user information. That needs to be sent to the inbox of all your followers.</p><p>Something like this:</p><pre><span><img src="https://shkspr.mobi/blog/wp-content/plugins/tempest-highlight/svg/json.svg" width="32" height="32" alt="" /><span> JSON</span></span><code><span>{</span>
    <span>"@context"</span>: <span>"https://www.w3.org/ns/activitystreams"</span>,
    <span>"actor"</span>: <span>"https://example.com/user"</span>,
    <span>"id"</span>: <span>"6a9162a6-a8e5-ca0f-9c08-8e6b814acef8"</span>,
    <span>"published"</span>: <span>"2026-08-31T12:34:56+01:00"</span>,
    <span>"to"</span>: <span>"https://www.w3.org/ns/activitystreams#Public"</span>,
    <span>"type"</span>: <span>"Update"</span>,
    <span>"object"</span>: <span>{</span>
        <span>"@context"</span>: <span>[</span>
            <span>"https://www.w3.org/ns/activitystreams"</span>,
            <span>"https://w3id.org/security/v1"</span>
        <span>]</span>,
        <span>"id"</span>: <span>"https://example.com/user"</span>,
        <span>"name"</span>: <span>"My new name"</span>,
        <span>"summary"</span>: <span>"A brand new description!"</span>,
        …
    <span>}</span>,
<span>}</span></code></pre><p>Obviously the <em>full</em> user information is a bit more than that - it will include inbox details, public keys, avatars, etc. The <code>published</code> property in the Update activity should be when you changed your details - not when the account was created.</p><p>Once that was sent, Mastodon immediately reflected the changes.</p><h2><a href="#thanks-to-nlnet">Thanks to NLnet</a></h2><p>This blog post was funded in part by the work I'm doing for my NLnet NGI0 grant to develop <a href="https://gitlab.com/edent/activity-bot">ActivityBot</a>.</p><p><a href="https://nlnet.nl/project/ActivityBot/"><img src="https://shkspr.mobi/blog/wp-content/uploads/2026/08/NGI-logos.webp" alt="NLnet logo." width="900" height="200" /></a></p>

<a rel="tag" href="https://shkspr.mobi/blog/tag/activitybot/">#ActivityBot</a> <a rel="tag" href="https://shkspr.mobi/blog/tag/activitypub/">#ActivityPub</a> <a rel="tag" href="https://shkspr.mobi/blog/tag/fediverse/">#fediverse</a> <a rel="tag" href="https://shkspr.mobi/blog/tag/mastodon/">#mastodon</a>]]></description><link>https://citiverse.it/topic/dbf6528d-363b-436f-9ecc-e845487eda9f/activitypub-how-to-send-an-updated-user-profile-to-mastodon-and-the-fediverse</link><generator>RSS for Node</generator><lastBuildDate>Wed, 28 Oct 2026 18:48:04 GMT</lastBuildDate><atom:link href="https://citiverse.it/topic/dbf6528d-363b-436f-9ecc-e845487eda9f.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Sep 2026 11:34:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ActivityPub - How to send an updated user profile to Mastodon and the Fediverse on Mon, 26 Oct 2026 04:26:45 GMT]]></title><description><![CDATA[<p><span><a href="/user/blog%40shkspr.mobi">@<span>blog</span></a></span> we should put this in the spec.</p>]]></description><link>https://citiverse.it/post/https://cosocial.ca/users/evan/statuses/117505314376806010</link><guid isPermaLink="true">https://citiverse.it/post/https://cosocial.ca/users/evan/statuses/117505314376806010</guid><dc:creator><![CDATA[evan@cosocial.ca]]></dc:creator><pubDate>Mon, 26 Oct 2026 04:26:45 GMT</pubDate></item></channel></rss>