IMproved handling of untrusted posts

This commit is contained in:
Michael 2022-07-24 21:58:09 +00:00
parent 5ab94ea921
commit b546173747
2 changed files with 12 additions and 3 deletions

View file

@ -466,7 +466,7 @@ class Processor
*
* @return boolean
*/
private static function isActivityGone(string $url): bool
public static function isActivityGone(string $url): bool
{
$curlResult = HTTPSignature::fetchRaw($url, 0);
@ -1346,6 +1346,7 @@ class Processor
{
$uid = User::getIdForURL($activity['object_id']);
if (empty($uid)) {
Queue::remove($activity);
return;
}