Moves carry follows over; first DMs to Lemmy 0.19 and Mbin go as ChatMessage
Two owner decisions of 2026-10-05, both recorded in ROADMAP: - After a verified Move the personas following the old account follow the new one, in the same lists, and a mute or block of the old account carries over, as Mastodon does it. - A direct message to one account on a server whose NodeInfo names Lemmy before 1.0 or Mbin goes as a ChatMessage, the one place PrivaPub decides by a server's software (invariant 17). G-0008 is closed. Mbin addresses its private messages to the recipient's profile page, so a Create addressed to a persona's /@name now reaches the persona. Checked live: moves 8/8, Lemmy 0.19 30/30, Mbin 26/26 with messages both ways. The software theory runs alone, since every test's peer shares 127.0.0.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
1 parent
f3e8cce2ed
commit
7b0377c85f
19 files changed
+309
-63
No files matched your search
@@ -133,12 +133,16 @@ namespace PrivaPub.Federation.Inbox.Handlers
|
||||
.Distinct(StringComparer.Ordinal)
|
||||
.ToList();
|
||||
var localTargets = new List<LocalActor>();
|
||||
foreach (var uri in addressed)
|
||||
for (var i = 0; i < addressed.Count; i++)
|
||||
{
|
||||
var local = await _localActors.FindByUri(uri, token);
|
||||
if (local is { IsFederated: true } && localTargets.All(l => l.Id != local.Id))
|
||||
var local = await _localActors.FindByAddress(addressed[i], token);
|
||||
if (local == default)
|
||||
continue;
|
||||
addressed[i] = local.Uri;
|
||||
if (local.IsFederated && localTargets.All(l => l.Id != local.Id))
|
||||
localTargets.Add(local);
|
||||
}
|
||||
addressed = addressed.Distinct(StringComparer.Ordinal).ToList();
|
||||
var persons = localTargets.Where(t => t.Kind == LocalActorKind.Person).ToList();
|
||||
|
||||
var parent = string.IsNullOrEmpty(note.InReplyTo)
|
||||
|
||||
Reference in new issue
Block a user