From: Mikael Nordfeldth Date: Tue, 5 Jan 2016 23:57:31 +0000 (+0100) Subject: Subscriber lists to separate files and also Profile typing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e577e883f4407b3dbd6c2631273b8014153504a0;p=quix0rs-gnu-social.git Subscriber lists to separate files and also Profile typing --- diff --git a/lib/profileaction.php b/lib/profileaction.php index bdcd575b6b..22c960406a 100644 --- a/lib/profileaction.php +++ b/lib/profileaction.php @@ -336,23 +336,3 @@ abstract class ProfileAction extends ManagedAction } } } - -class SubscribersMiniList extends ProfileMiniList -{ - function newListItem($profile) - { - return new SubscribersMiniListItem($profile, $this->action); - } -} - -class SubscribersMiniListItem extends ProfileMiniListItem -{ - function linkAttributes() - { - $aAttrs = parent::linkAttributes(); - if (common_config('nofollow', 'subscribers')) { - $aAttrs['rel'] .= ' nofollow'; - } - return $aAttrs; - } -} diff --git a/lib/subscribersminilist.php b/lib/subscribersminilist.php new file mode 100644 index 0000000000..79188330a1 --- /dev/null +++ b/lib/subscribersminilist.php @@ -0,0 +1,11 @@ +action); + } +} diff --git a/lib/subscribersminilistitem.php b/lib/subscribersminilistitem.php new file mode 100644 index 0000000000..3cd618e55b --- /dev/null +++ b/lib/subscribersminilistitem.php @@ -0,0 +1,15 @@ +