]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noticelistitem.php
pluginified most of hasFave, getFaves and related calls
[quix0rs-gnu-social.git] / lib / noticelistitem.php
index c05d8cdca9e1f92c10b7672b9f4e257b3ac53328..7e4380e1bcdbd97d6a14c8c34da3ca9a84a7cb85 100644 (file)
@@ -153,7 +153,6 @@ class NoticeListItem extends Widget
             if ($user) {
                 $this->out->elementStart('div', 'notice-options');
                 if (Event::handle('StartShowNoticeOptionItems', array($this))) {
-                    $this->showFaveForm();
                     $this->showReplyLink();
                     $this->showRepeatForm();
                     $this->showDeleteLink();
@@ -187,28 +186,6 @@ class NoticeListItem extends Widget
         }
     }
 
-    /**
-     * show the "favorite" form
-     *
-     * @return void
-     */
-    function showFaveForm()
-    {
-        if (Event::handle('StartShowFaveForm', array($this))) {
-            $user = common_current_user();
-            if ($user) {
-                if ($user->hasFave($this->notice)) {
-                    $disfavor = new DisfavorForm($this->out, $this->notice);
-                    $disfavor->show();
-                } else {
-                    $favor = new FavorForm($this->out, $this->notice);
-                    $favor->show();
-                }
-            }
-            Event::handle('EndShowFaveForm', array($this));
-        }
-    }
-
     /**
      * show the author of a notice
      *