Update AP helpers

pull/3994/head
Daniel Supernault 2022-12-23 22:23:12 -07:00
rodzic 1393084def
commit 6396e7e574
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 83 dodań i 90 usunięć

Wyświetl plik

@ -458,7 +458,6 @@ class Helpers {
$reply_to = self::getReplyTo($activity);
return DB::transaction(function() use($url, $profile, $activity, $reply_to, $id) {
$ts = self::pluckval($activity['published']);
$scope = self::getScope($activity, $url);
$cw = self::getSensitive($activity, $url);
@ -513,7 +512,6 @@ class Helpers {
IncrementPostCount::dispatch($pid)->onQueue('low');
return $status;
});
}
public static function getSensitive($activity, $url)
@ -739,7 +737,6 @@ class Helpers {
return;
}
$profile = DB::transaction(function() use($domain, $webfinger, $res) {
$instance = Instance::updateOrCreate([
'domain' => $domain
]);
@ -773,10 +770,6 @@ class Helpers {
$profile->last_fetched_at = now();
$profile->save();
return $profile;
});
return $profile;
}
public static function profileFetch($url)