From: Evan Prodromou Date: Mon, 18 Oct 2010 15:28:31 +0000 (-0400) Subject: When nofollow|external=sometimes, do follow on favorites page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e443c524f61fca5d923e69a118a75338a18bf5d;p=quix0rs-gnu-social.git When nofollow|external=sometimes, do follow on favorites page --- diff --git a/actions/showfavorites.php b/actions/showfavorites.php index d8042e91c7..77b73711d2 100644 --- a/actions/showfavorites.php +++ b/actions/showfavorites.php @@ -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 +{ +}