make sure the status array has 'repeated' key
I think the event handler should be doublechecked on more than one point. For example the call arguments don't seem to include an array argument which can include an option called "include_user". Also the $scoped value is not necessarily always a Profile, it can be null too.
This commit is contained in:
parent
e6d270082d
commit
9af89a0e0e
|
@ -481,7 +481,7 @@ class QvitterPlugin extends Plugin {
|
|||
$twitter_status['statusnet_in_groups'] = $group_addressees;
|
||||
|
||||
// include the repeat-id, which we need when unrepeating later
|
||||
if($twitter_status['repeated'] === true) {
|
||||
if(array_key_exists('repeated', $twitter_status) && $twitter_status['repeated'] === true) {
|
||||
$repeated = Notice::pkeyGet(array('profile_id' => $scoped->id,
|
||||
'repeat_of' => $notice->id));
|
||||
$twitter_status['repeated_id'] = $repeated->id;
|
||||
|
|
Loading…
Reference in New Issue
Block a user