X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FRelay.php;h=da9a2e3923484d62130a4eb60031a62d59814e37;hb=e8becc153856debb927d7afac17bae5c80a0abb7;hp=f89dc3999930d48e47ee83044183a2210333454e;hpb=b4f2630fea8a8e1274bc123f9c78e751e72103c3;p=friendica.git diff --git a/src/Protocol/Relay.php b/src/Protocol/Relay.php index f89dc39999..da9a2e3923 100644 --- a/src/Protocol/Relay.php +++ b/src/Protocol/Relay.php @@ -77,7 +77,7 @@ class Relay if ($scope == SR_SCOPE_TAGS) { $server_tags = $config->get('system', 'relay_server_tags'); $tagitems = explode(',', mb_strtolower($server_tags)); - foreach ($tagitems AS $tag) { + foreach ($tagitems as $tag) { $systemTags[] = trim($tag, '# '); } @@ -90,7 +90,7 @@ class Relay $deny_tags = $config->get('system', 'relay_deny_tags'); $tagitems = explode(',', mb_strtolower($deny_tags)); - foreach ($tagitems AS $tag) { + foreach ($tagitems as $tag) { $tag = trim($tag, '# '); $denyTags[] = $tag; } @@ -166,7 +166,7 @@ class Relay $fields['updated'] = DateTimeFormat::utcNow(); Logger::info('Update relay contact', ['server' => $gserver['url'], 'id' => $old['id'], 'fields' => $fields]); - DBA::update('contact', $fields, ['id' => $old['id']], $old); + Contact::update($fields, ['id' => $old['id']], $old); } else { $default = ['created' => DateTimeFormat::utcNow(), 'name' => 'relay', 'nick' => 'relay', 'url' => $gserver['url'],