mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-27 00:33:17 +00:00
commit
16e58ccbd8
1 changed files with 6 additions and 1 deletions
|
@ -457,9 +457,14 @@ class Helpers {
|
||||||
$ts = self::pluckval($activity['published']);
|
$ts = self::pluckval($activity['published']);
|
||||||
$scope = self::getScope($activity);
|
$scope = self::getScope($activity);
|
||||||
$cw = self::getSensitive($activity);
|
$cw = self::getSensitive($activity);
|
||||||
|
$pid = is_object($profile) ? $profile->id : (is_array($profile) ? $profile['id'] : null);
|
||||||
|
|
||||||
|
if(!$pid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$status = new Status;
|
$status = new Status;
|
||||||
$status->profile_id = $profile->id;
|
$status->profile_id = $pid;
|
||||||
$status->url = $url;
|
$status->url = $url;
|
||||||
$status->uri = $url;
|
$status->uri = $url;
|
||||||
$status->object_url = $id;
|
$status->object_url = $id;
|
||||||
|
|
Loading…
Reference in a new issue