X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsubscribers.php;h=ae52526e199115ac2d5aae511fe459fdc302be80;hb=2abe10b8ea4b5d69fc7f6513bf465541454ca2cf;hp=de2090cf116dfda0b7c640d82e03e4fb01570ae5;hpb=87b494f1ebbe7640d194ef322af12fdf378295df;p=quix0rs-gnu-social.git diff --git a/actions/subscribers.php b/actions/subscribers.php index de2090cf11..ae52526e19 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -36,8 +36,8 @@ class SubscribersAction extends GalleryAction { } } - function define_subs(&$subs, &$profile) { - $subs->subscribed = $profile->id; + function fields() { + return array('subscriber', 'subscribed'); } function div_class() { @@ -47,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)); + } +}