1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-26 01:34:03 +02:00

fix: introduce system env var, remove debug mode (#4658)

* fix: introduce system env var

* docs

* docs
This commit is contained in:
Dag
2025-08-08 01:38:12 +02:00
committed by GitHub
parent a128c05a97
commit 81ce9c9483
12 changed files with 55 additions and 95 deletions

View File

@@ -178,10 +178,8 @@ class BlueskyBridge extends BridgeAbstract
$postDisplayName = e($postDisplayName);
$postUri = $item['uri'];
if (Debug::isEnabled()) {
$url = explode('/', $post['post']['uri']);
$this->logger->debug('https://bsky.app/profile/' . $url[2] . '/post/' . $url[4]);
}
$url = explode('/', $post['post']['uri']);
$this->logger->debug('https://bsky.app/profile/' . $url[2] . '/post/' . $url[4]);
$description = '';
$description .= '<p>';
@@ -612,9 +610,9 @@ class BlueskyBridge extends BridgeAbstract
private function getAuthorFeed($did, $filter)
{
$uri = 'https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=' . urlencode($did) . '&filter=' . urlencode($filter) . '&limit=30';
if (Debug::isEnabled()) {
$this->logger->debug($uri);
}
$this->logger->debug($uri);
$response = json_decode(getContents($uri), true);
return $response;
}