Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Shorten the mention-facet comment to one line

Paulo Castellano5d80caffefea
diff --git a/app/Services/Social/BlueskyPublisher.php b/app/Services/Social/BlueskyPublisher.php
index 2fb38557f..31eaff478 100644
--- a/app/Services/Social/BlueskyPublisher.php
+++ b/app/Services/Social/BlueskyPublisher.php
@@ -211,12 +211,7 @@ class BlueskyPublisher
$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;