Subscriber lists to separate files and also Profile typing
This commit is contained in:
parent
59d3bbe037
commit
e577e883f4
@ -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;
|
||||
}
|
||||
}
|
||||
|
11
lib/subscribersminilist.php
Normal file
11
lib/subscribersminilist.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
if (!defined('GNUSOCIAL')) { exit(1); }
|
||||
|
||||
class SubscribersMiniList extends ProfileMiniList
|
||||
{
|
||||
public function newListItem(Profile $profile)
|
||||
{
|
||||
return new SubscribersMiniListItem($profile, $this->action);
|
||||
}
|
||||
}
|
15
lib/subscribersminilistitem.php
Normal file
15
lib/subscribersminilistitem.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user