mirror of
https://github.com/friendica/friendica
synced 2025-04-24 01:10:11 +00:00
IMproved handling of untrusted posts
This commit is contained in:
parent
5ab94ea921
commit
b546173747
2 changed files with 12 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue