Update AP helpers

This commit is contained in:
Daniel Supernault 2022-04-06 01:51:40 -06:00
parent 58d3c700b2
commit 197499da8b
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 6 additions and 1 deletions

View File

@ -457,9 +457,14 @@ class Helpers {
$ts = self::pluckval($activity['published']);
$scope = self::getScope($activity);
$cw = self::getSensitive($activity);
$pid = is_object($profile) ? $profile->id : (is_array($profile) ? $profile['id'] : null);
if(!$pid) {
return;
}
$status = new Status;
$status->profile_id = $profile->id;
$status->profile_id = $pid;
$status->url = $url;
$status->uri = $url;
$status->object_url = $id;