mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:55:18 +00:00
attempt to dbesc an array from a malformed activity
This commit is contained in:
parent
9dc37df489
commit
6b26dbb3de
1 changed files with 7 additions and 1 deletions
|
@ -2872,8 +2872,15 @@ class Activity
|
|||
$response_activity = true;
|
||||
|
||||
$s['mid'] = $act->id;
|
||||
|
||||
$s['parent_mid'] = ($act->objprop('id')) ? $act->objprop('id') : $act->obj;
|
||||
|
||||
// Something went horribly wrong. The activity object isn't a string but doesn't have an id.
|
||||
// Seen in the wild with a post from jasonrobinson.me being liked by a Friendica account.
|
||||
|
||||
if (! is_string($s['parent_mid'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// over-ride the object timestamp with the activity
|
||||
|
||||
|
@ -3570,7 +3577,6 @@ class Activity
|
|||
|
||||
public static function store($channel, $observer_hash, $act, $item, $fetch_parents = true, $force = false)
|
||||
{
|
||||
|
||||
if ($act && $act->implied_create && !$force) {
|
||||
// This is originally a S2S object with no associated activity
|
||||
logger('Not storing implied create activity!');
|
||||
|
|
Loading…
Reference in a new issue