👔 Web finger now only serve opt-in fediverse publishers

This commit is contained in:
2025-12-31 18:57:25 +08:00
parent 413ae80c96
commit 6c8c52e3b2
2 changed files with 11 additions and 5 deletions

View File

@@ -41,6 +41,12 @@ public class WebFingerController(
if (publisher == null)
return NotFound();
var hasActor = await db.FediverseActors
.AnyAsync(a => a.PublisherId == publisher.Id);
if (!hasActor)
return NotFound();
var actorUrl = $"https://{Domain}/activitypub/actors/{username}";
var response = new WebFingerResponse