]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Treat author just as anyone else (Notice distrib)
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 6 Mar 2014 00:55:23 +0000 (01:55 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 6 Mar 2014 00:55:23 +0000 (01:55 +0100)
classes/Notice.php

index 808de55c2e0fbd93de26657d565ba2c042f17e6d..f0a7a85bff3ab64e85baee4b1e07c968413ca60f 100644 (file)
@@ -1085,17 +1085,7 @@ class Notice extends Managed_DataObject
 
         $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
-
         Inbox::bulkInsert($this, $ids);
 
         return;
@@ -2066,11 +2056,6 @@ class Notice extends Managed_DataObject
         // have to wait
         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_
         // distribution at this point.
         try {