Commit e577e883 authored by mmn's avatar mmn

Subscriber lists to separate files and also Profile typing

parent 59d3bbe0
......@@ -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;
}
}
<?php
if (!defined('GNUSOCIAL')) { exit(1); }
class SubscribersMiniList extends ProfileMiniList
{
public function newListItem(Profile $profile)
{
return new SubscribersMiniListItem($profile, $this->action);
}
}
<?php
if (!defined('GNUSOCIAL')) { exit(1); }
class SubscribersMiniListItem extends ProfileMiniListItem
{
function linkAttributes()
{
$aAttrs = parent::linkAttributes();
if (common_config('nofollow', 'subscribers')) {
$aAttrs['rel'] .= ' nofollow';
}
return $aAttrs;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment