1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-14 04:24:05 +02:00

refactor: loadCacheValue/saveCacheValue (#4205)

This commit is contained in:
Dag
2024-08-08 17:47:04 +02:00
committed by GitHub
parent 2acd415475
commit f358f1abec
8 changed files with 188 additions and 158 deletions

View File

@@ -105,7 +105,7 @@ class MastodonBridge extends BridgeAbstract
break;
}
$rtUser = $this->loadCacheValue($rtContent['attributedTo']);
if (!isset($rtUser)) {
if (!$rtUser) {
// We fetch the author, since we cannot always assume the format of the URL.
$user = $this->fetchAP($rtContent['attributedTo']);
preg_match('/https?:\/\/([a-z0-9-\.]{0,})\//', $rtContent['attributedTo'], $matches);