Skip to content

Commit d8b3732

Browse files
committed
fix: check for empty atUri
1 parent fd7d063 commit d8b3732

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/page-methods.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
$mastodonSender = new BlueskySender();
1212
$atUri = $mastodonSender->getPostTargetUrl('bluesky', $this);
1313

14+
if (is_null($atUri)) {
15+
return '';
16+
}
17+
1418
// Regular expression to match the DID and RKEY
1519
$regex = '/^at:\/\/(did:plc:[a-zA-Z0-9]+)\/app\.bsky\.feed\.post\/([a-zA-Z0-9]+)$/';
1620

0 commit comments

Comments
 (0)