forked from GNUsocial/gnu-social
[CORE][ENTITY] Rename 'Entity::getWithPK' to 'Entity::getByPK'
This commit is contained in:
@@ -77,7 +77,7 @@ class Activity extends Model
|
||||
$type_activity = is_string($json) ? self::jsonToType($json) : $json;
|
||||
|
||||
// Ditch known activities
|
||||
$ap_act = ActivitypubActivity::getWithPK(['activity_uri' => $type_activity->get('id')]);
|
||||
$ap_act = ActivitypubActivity::getByPK(['activity_uri' => $type_activity->get('id')]);
|
||||
if (!is_null($ap_act)) {
|
||||
return $ap_act;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user