X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsubscribers.php;h=ae52526e199115ac2d5aae511fe459fdc302be80;hb=2abe10b8ea4b5d69fc7f6513bf465541454ca2cf;hp=2cc82d4571d3b6bf54e9e304411017b6e56aebd2;hpb=ab1f2ff9d07088c7a3607ee6d05b1042d735960d;p=quix0rs-gnu-social.git diff --git a/actions/subscribers.php b/actions/subscribers.php index 2cc82d4571..ae52526e19 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -36,9 +36,8 @@ class SubscribersAction extends GalleryAction { } } - function define_subs(&$subs, &$profile) { - $subs->subscribed = $profile->id; - $subs->whereAdd('subscriber != ' . $profile->id); + function fields() { + return array('subscriber', 'subscribed'); } function div_class() { @@ -48,4 +47,15 @@ class SubscribersAction extends GalleryAction { function get_other(&$subs) { return $subs->subscriber; } -} \ No newline at end of file + + function profile_list_class() { + return 'SubscribersList'; + } +} + +class SubscribersList extends ProfileList { + function show_owner_controls($profile) { + common_block_form($profile, array('action' => 'subscribers', + 'nickname' => $this->owner->nickname)); + } +}