]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
When nofollow|external=sometimes, do follow on favorites page
authorEvan Prodromou <evan@status.net>
Mon, 18 Oct 2010 15:28:31 +0000 (11:28 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 18 Oct 2010 15:28:31 +0000 (11:28 -0400)
actions/showfavorites.php

index d8042e91c7195c93f50b53b6e9f3d9f418494109..77b73711d26af8586d1c1e00e844424661ff45cd 100644 (file)
@@ -227,7 +227,7 @@ class ShowfavoritesAction extends OwnerDesignAction
 
     function showContent()
     {
-        $nl = new NoticeList($this->notice, $this);
+        $nl = new FavoritesNoticeList($this->notice, $this);
 
         $cnt = $nl->show();
         if (0 == $cnt) {
@@ -244,3 +244,15 @@ class ShowfavoritesAction extends OwnerDesignAction
     }
 }
 
+class FavoritesNoticeList extends NoticeList
+{
+    function newListItem($notice)
+    {
+        return new FavoritesNoticeListItem($notice, $this->out);
+    }
+}
+
+// All handled by superclass
+class FavoritesNoticeListItem extends DoFollowListItem
+{
+}