mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
Several fixes
This commit is contained in:
parent
bd6ba98e8d
commit
93866b477a
4 changed files with 6 additions and 8 deletions
|
@ -272,7 +272,7 @@ class Processor
|
|||
*/
|
||||
public static function followUser($activity)
|
||||
{
|
||||
$uid = User::getIdForURL($activity['object_actor']);
|
||||
$uid = User::getIdForURL($activity['object_id']);
|
||||
if (empty($uid)) {
|
||||
return;
|
||||
}
|
||||
|
@ -326,12 +326,12 @@ class Processor
|
|||
*/
|
||||
public static function deletePerson($activity)
|
||||
{
|
||||
if (empty($activity['object_id']) || empty($activity['object_actor'])) {
|
||||
if (empty($activity['object_id']) || empty($activity['actor'])) {
|
||||
logger('Empty object id or actor.', LOGGER_DEBUG);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($activity['object_id'] != $activity['object_actor']) {
|
||||
if ($activity['object_id'] != $activity['actor']) {
|
||||
logger('Object id does not match actor.', LOGGER_DEBUG);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue