aboutsummaryrefslogtreecommitdiff
path: root/bridges/ThreadsBridge.php
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2024-08-08 04:31:47 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-08 04:31:47 +0200
commit2acd415475e0d1f4b621003a85ece6e47a3790f7 (patch)
tree60c0280a9485f63f5b4d710520edd39764ef406f /bridges/ThreadsBridge.php
parent6afd13eb06276f085f245c5075972ef36eb6740a (diff)
downloadrss-bridge-2acd415475e0d1f4b621003a85ece6e47a3790f7.tar.gz
rss-bridge-2acd415475e0d1f4b621003a85ece6e47a3790f7.tar.zst
rss-bridge-2acd415475e0d1f4b621003a85ece6e47a3790f7.zip
refactor: drop usage of Debug::log (#4202)
* refactor: drop usage of Debug::log * lint
Diffstat (limited to 'bridges/ThreadsBridge.php')
-rw-r--r--bridges/ThreadsBridge.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/bridges/ThreadsBridge.php b/bridges/ThreadsBridge.php
index b7e5cd1a..cfcbba0e 100644
--- a/bridges/ThreadsBridge.php
+++ b/bridges/ThreadsBridge.php
@@ -70,9 +70,9 @@ class ThreadsBridge extends BridgeAbstract
public function collectData()
{
$html = getSimpleHTMLDOMCached($this->getURI(), static::CACHE_TIMEOUT);
- Debug::log(sprintf('Fetched: %s', $this->getURI()));
+
$jsonBlobs = $html->find('script[type="application/json"]');
- Debug::log(sprintf('%d JSON blobs found.', count($jsonBlobs)));
+
$gatheredCodes = [];
$limit = $this->getInput('limit');
foreach ($jsonBlobs as $jsonBlob) {
@@ -87,7 +87,6 @@ class ThreadsBridge extends BridgeAbstract
}
}
}
- Debug::log(sprintf('Candidate codes found in JSON in script tags: %s', print_r($gatheredCodes, true)));
$this->feedName = html_entity_decode($html->find('meta[property=og:title]', 0)->content);
// todo: meta[property=og:description] could populate the feed description