From 01089e13b028427a9c87b5a52f2c4604777ff641 Mon Sep 17 00:00:00 2001 From: mruac Date: Tue, 25 Mar 2025 21:24:08 +1030 Subject: [PATCH] lint --- bridges/BlueskyBridge.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bridges/BlueskyBridge.php b/bridges/BlueskyBridge.php index 0071143c..f0e609d9 100644 --- a/bridges/BlueskyBridge.php +++ b/bridges/BlueskyBridge.php @@ -566,14 +566,14 @@ class BlueskyBridge extends BridgeAbstract } $title .= ', replying to ' . $replyAuthor; } - + if ( - isset($post['post']['embed']) && + isset($post['post']['embed']) && isset($post['post']['embed']['record']) && //if not starter pack, feed or list - ($post['post']['embed']['record']['$type'] ?? '') !== "app.bsky.feed.defs#generatorView" && - ($post['post']['embed']['record']['$type'] ?? '') !== "app.bsky.graph.defs#listView" && - ($post['post']['embed']['record']['$type'] ?? '') !== "app.bsky.graph.defs#starterPackViewBasic" + ($post['post']['embed']['record']['$type'] ?? '') !== 'app.bsky.feed.defs#generatorView' && + ($post['post']['embed']['record']['$type'] ?? '') !== 'app.bsky.graph.defs#listView' && + ($post['post']['embed']['record']['$type'] ?? '') !== 'app.bsky.graph.defs#starterPackViewBasic' ) { if (isset($post['post']['embed']['record']['blocked'])) { $quotedAuthor = 'blocked user'; @@ -616,12 +616,12 @@ class BlueskyBridge extends BridgeAbstract //Embed for generated feeds and lists private function getListFeedDescription(array $record): string { - $feedViewAvatar = isset($record['avatar']) ? "" : ""; + $feedViewAvatar = isset($record['avatar']) ? '' : ''; $feedViewName = e($record['displayName'] ?? $record['name']); $feedViewDescription = e($record['description'] ?? ''); $authorDisplayName = e($record['creator']['displayName']); $authorHandle = e($record['creator']['handle']); - $likeCount = isset($record['likeCount']) ? "
Liked by " . e($record['likeCount']) . " users" : ''; + $likeCount = isset($record['likeCount']) ? '
Liked by ' . e($record['likeCount']) . ' users' : ''; preg_match('/\/([^\/]+)$/', $record['uri'], $matches); if (($record['purpose'] ?? '') === 'app.bsky.graph.defs#modlist') { $typeURL = '/lists/';