mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-04 19:30:45 +00:00
commit
7a75271569
1 changed files with 83 additions and 90 deletions
|
@ -458,7 +458,6 @@ class Helpers {
|
||||||
|
|
||||||
$reply_to = self::getReplyTo($activity);
|
$reply_to = self::getReplyTo($activity);
|
||||||
|
|
||||||
return DB::transaction(function() use($url, $profile, $activity, $reply_to, $id) {
|
|
||||||
$ts = self::pluckval($activity['published']);
|
$ts = self::pluckval($activity['published']);
|
||||||
$scope = self::getScope($activity, $url);
|
$scope = self::getScope($activity, $url);
|
||||||
$cw = self::getSensitive($activity, $url);
|
$cw = self::getSensitive($activity, $url);
|
||||||
|
@ -513,7 +512,6 @@ class Helpers {
|
||||||
IncrementPostCount::dispatch($pid)->onQueue('low');
|
IncrementPostCount::dispatch($pid)->onQueue('low');
|
||||||
|
|
||||||
return $status;
|
return $status;
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getSensitive($activity, $url)
|
public static function getSensitive($activity, $url)
|
||||||
|
@ -739,7 +737,6 @@ class Helpers {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$profile = DB::transaction(function() use($domain, $webfinger, $res) {
|
|
||||||
$instance = Instance::updateOrCreate([
|
$instance = Instance::updateOrCreate([
|
||||||
'domain' => $domain
|
'domain' => $domain
|
||||||
]);
|
]);
|
||||||
|
@ -773,10 +770,6 @@ class Helpers {
|
||||||
$profile->last_fetched_at = now();
|
$profile->last_fetched_at = now();
|
||||||
$profile->save();
|
$profile->save();
|
||||||
return $profile;
|
return $profile;
|
||||||
});
|
|
||||||
|
|
||||||
return $profile;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function profileFetch($url)
|
public static function profileFetch($url)
|
||||||
|
|
Loading…
Reference in a new issue