PieFed and Mbin take reports from the reporter too
Both speak Lemmy's shapes and joined the servers that get reports in that shape only once the pasture showed each keeps one with its reason. By their source, PieFed dropped the instance actor's report (it makes a user only of a Person or a Service) and Mbin kept it without the persona's words (it reads the reason from `summary` alone). With them in `ServiceReportTakers`, each keeps the reports of a thread and of a comment from "Reports from privapub.test" with alice's words, and none names her (piefed.sh and mbin.sh, 65 checks with the full sweep's 876). A report of a PieFed account alone, which PieFed would take from the reporter, is not sent yet; INTEROP says so. 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
f66c280b0b
commit
f105d1f7ea
9 files changed
+72
-24
No files matched your search
@@ -80,22 +80,27 @@ namespace PrivaPub.Tests.Federation
|
||||
.Select(p => (p, JsonNode.Parse(p.Body)!.AsObject()))
|
||||
.ToList();
|
||||
|
||||
// a community on a Lemmy (the peer as localhost), and one of its posters there
|
||||
async Task<(RemoteActor Community, RemoteActor Poster)> OnLemmy()
|
||||
// a community on a Lemmy, or on a server that takes reports as Lemmy does (the peer as localhost), and one of its posters there
|
||||
async Task<(RemoteActor Community, RemoteActor Poster)> OnLemmy(string software = "lemmy")
|
||||
{
|
||||
var community = new RemoteActor(_harness.Peer, "cats", _harness.Peer.B, type: "Group", sharedInbox: true);
|
||||
var poster = new RemoteActor(_harness.Peer, "poster", _harness.Peer.B);
|
||||
await Known(community);
|
||||
await Known(poster);
|
||||
await Runs("localhost", "lemmy");
|
||||
await Runs("localhost", software);
|
||||
return (community, poster);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task A_post_in_a_lemmy_community_is_reported_to_its_community_by_the_reporter_and_nowhere_else()
|
||||
// PieFed and Mbin take it too, proven live (2026-10-06); NodeInfo names Lemmy as "lemmy" and kbin's heir as "mbin"
|
||||
[Theory]
|
||||
[InlineData("lemmy")]
|
||||
[InlineData("Lemmy")]
|
||||
[InlineData("piefed")]
|
||||
[InlineData("mbin")]
|
||||
public async Task A_post_in_a_lemmy_community_is_reported_to_its_community_by_the_reporter_and_nowhere_else(string software)
|
||||
{
|
||||
var (_, alice) = await _harness.Persona("alice");
|
||||
var (community, poster) = await OnLemmy();
|
||||
var (community, poster) = await OnLemmy(software);
|
||||
var post = await Held(poster, community.Id);
|
||||
var reporter = await _harness.Local.GetReporterActor(Token);
|
||||
|
||||
|
||||
Reference in new issue
Block a user