} catch (\Exception $exception) {
Logger::notice('Error fetching url', ['url' => $url, 'exception' => $exception]);
return true;
- }
+ }
// @todo To ensure that the remote system is working correctly, we can check if the "Content-Type" contains JSON
if (in_array($curlResult->getReturnCode(), [401, 404])) {
if (!empty($item['source']) && DI::config()->get('debug', 'store_source')) {
Post\Activity::insert($item['uri-id'], $item['source']);
}
-
+
continue;
}
} else {
return null;
}
-
+
$ldactivity['recursion-depth'] = !empty($child['recursion-depth']) ? $child['recursion-depth'] + 1 : 0;
if ($object_actor != $actor) {
$tags = Receiver::processTags(JsonLD::fetchElementArray($activity['as:object'], 'as:tag') ?? []);
if (!empty($tags)) {
foreach ($tags as $tag) {
- if (($tag['type'] != 'Hashtag') && !strpos($tag['type'], ':Hashtag')) {
+ if (($tag['type'] != 'Hashtag') && !strpos($tag['type'], ':Hashtag') || empty($tag['name'])) {
continue;
}
$messageTags[] = ltrim(mb_strtolower($tag['name']), '#');