A follow of a persona's profile page; an Update under its Create's id
Forte follows a persona by its profile page (/@name, WebFinger's alias) rather than its actor's id: Follow and
Undo{Follow} now find the persona by either (it was a 404). Forte also sends an edit only added to the thread's context
(FEP-171b), under the same activity id as the post's Create: the unwrapping now tells two activities that share an id
apart by what they carry, as the inbox does, so the Update is not taken for a copy.
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
d06f684f0d
commit
99b5e2dbf3
6 files changed
+67
-8
No files matched your search
@@ -32,9 +32,13 @@ namespace PrivaPub.Federation.Inbox
|
||||
Arrival.Drop("container-unusable");
|
||||
return true;
|
||||
}
|
||||
var payload = new InboxPayload(actorUri, inner.ToJsonString(), "shared", ReceivedAt: DateTime.UtcNow, ForwardedBy: owner.ActorURI);
|
||||
var queued = await queue.Enqueue(JobKind.ProcessInbox, JsonSerializer.Serialize(payload), new Uri(actorUri).Host.ToLowerInvariant(),
|
||||
"inbox|forwarded|" + innerId, token);
|
||||
var payload = JsonSerializer.Serialize(new InboxPayload(actorUri, inner.ToJsonString(), "shared", ReceivedAt: DateTime.UtcNow, ForwardedBy: owner.ActorURI));
|
||||
var host = new Uri(actorUri).Host.ToLowerInvariant();
|
||||
var dedupe = "inbox|forwarded|" + innerId;
|
||||
var queued = await queue.Enqueue(JobKind.ProcessInbox, payload, host, dedupe, token);
|
||||
// one id for two activities (Forte's Update of a post has its Create's id): what each carries tells them apart
|
||||
if (!queued && InboxReceiver.CarriesOther(await queue.Payload(dedupe, token), inner))
|
||||
queued = await queue.Enqueue(JobKind.ProcessInbox, payload, host, $"{dedupe}|{InboxReceiver.Digest(inner)}", token);
|
||||
if (queued)
|
||||
Arrival.Accept("unwrapped");
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user