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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user