From 5d80caffefea4921bd5608dd4328da9b03953786 Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Sat, 13 Jun 2026 18:16:24 -0300 Subject: [PATCH] Shorten the mention-facet comment to one line --- app/Services/Social/BlueskyPublisher.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/Services/Social/BlueskyPublisher.php b/app/Services/Social/BlueskyPublisher.php index 2fb38557..31eaff47 100644 --- a/app/Services/Social/BlueskyPublisher.php +++ b/app/Services/Social/BlueskyPublisher.php @@ -211,12 +211,7 @@ private function parseFacets(string $text, ?string $service = null, ?SocialAccou $mention = $match[0]; $handle = substr($mention, 1); // Remove @ - // A mention facet requires the target's DID, not the handle. Bluesky - // does NOT resolve a handle placed in the `did` field — sending one - // makes the whole record invalid (InvalidRequest / "Invalid post - // data"), so every post containing a mention fails to publish. - // Resolve the handle to a DID here; if it can't be resolved, skip the - // facet so the post still publishes with the @handle as plain text. + // A mention facet needs the target's DID, not the handle; skip it if unresolvable. $did = $didCache[$handle] ?? ($didCache[$handle] = $this->resolveHandleToDid($handle, $service, $account)); if ($did === null) { continue;