forked from GNUsocial/gnu-social
Nothing interesting was made in this commit.
This commit is contained in:
parent
a112e7f9a4
commit
e41809af89
@ -53,7 +53,7 @@ class Attention extends Managed_DataObject
|
||||
{
|
||||
try {
|
||||
$att = Attention::getByKeys(['notice_id'=>$notice->getID(), 'profile_id'=>$target->getID()]);
|
||||
throw new AlreadyFulfilledException('Attention already exists with reason: '.var_export($att->reason,true));
|
||||
throw new AlreadyFulfilledException('Attention already exists with reason: '._ve($att->reason));
|
||||
} catch (NoResultException $e) {
|
||||
$att = new Attention();
|
||||
|
||||
@ -67,6 +67,7 @@ class Attention extends Managed_DataObject
|
||||
throw new Exception('Failed Attention::saveNew for notice id=='.$notice->getID().' target id=='.$target->getID().', reason=="'.$reason.'"');
|
||||
}
|
||||
}
|
||||
self::blow('attention:stream:%d', $target->getID());
|
||||
return $att;
|
||||
}
|
||||
}
|
||||
|
@ -1647,8 +1647,6 @@ class Notice extends Managed_DataObject
|
||||
}
|
||||
|
||||
$att = Attention::saveNew($this, $target, $reason);
|
||||
|
||||
self::blow('reply:stream:%d', $target->getID());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user