Treat author just as anyone else (Notice distrib)
This commit is contained in:
parent
00db57949f
commit
da87e742f8
|
@ -1085,17 +1085,7 @@ class Notice extends Managed_DataObject
|
||||||
|
|
||||||
$ids = array_keys($ni);
|
$ids = array_keys($ni);
|
||||||
|
|
||||||
// We remove the author (if they're a local user),
|
|
||||||
// since we'll have already done this in distribute()
|
|
||||||
|
|
||||||
$i = array_search($this->profile_id, $ids);
|
|
||||||
|
|
||||||
if ($i !== false) {
|
|
||||||
unset($ids[$i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Bulk insert
|
// Bulk insert
|
||||||
|
|
||||||
Inbox::bulkInsert($this, $ids);
|
Inbox::bulkInsert($this, $ids);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -2066,11 +2056,6 @@ class Notice extends Managed_DataObject
|
||||||
// have to wait
|
// have to wait
|
||||||
Event::handle('StartNoticeDistribute', array($this));
|
Event::handle('StartNoticeDistribute', array($this));
|
||||||
|
|
||||||
$user = User::getKV('id', $this->profile_id);
|
|
||||||
if ($user instanceof User) {
|
|
||||||
Inbox::insertNotice($this, $user->id);
|
|
||||||
}
|
|
||||||
|
|
||||||
// If there's a failure, we want to _force_
|
// If there's a failure, we want to _force_
|
||||||
// distribution at this point.
|
// distribution at this point.
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user