Support for differing domains for Pleroma web endpoint and for acct: URIs
Mastodon currently supports an instance being hosted from a different "LOCAL_DOMAIN" (domain used in WebFinger acct: URIs) from the "WEB_DOMAIN" (the host that the Mastodon instance is being served from), per this document.
An example of this being done with Mastodon is mastodon.sergal.org, which is running a LOCAL_DOMAIN of sergal.org. So, @Sir_Boops@sergal.org resolves to https://mastodon.sergal.org/@Sir_Boops. The instance knows that it's being served from mastodon.sergal.org, but displays things as just sergal.org.
So, the first part of this issue is to support a Pleroma instance being configured in this way.
The second part, however, is how activities from such an instance appear in the timeline.
On Mastodon instances, they appear as being from @Sir_Boops@sergal.org, as expected: .
On Pleroma instances, they appear as being from @Sir_Boops@mastodon.sergal.org, as seen here: