2020-04-07 13:03:04 +00:00
|
|
|
<?php
|
|
|
|
namespace Activitypub\Peer;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ActivityPub Followers DB-Class
|
|
|
|
*
|
|
|
|
* @author Matthias Pfefferle
|
|
|
|
*/
|
|
|
|
class Followers {
|
|
|
|
|
|
|
|
public static function get_followers( $author_id ) {
|
2023-10-22 22:20:53 +00:00
|
|
|
_deprecated_function( __METHOD__, '1.0.0', '\Activitypub\Collection\Followers::get_followers' );
|
2020-04-07 13:03:04 +00:00
|
|
|
|
2023-10-22 22:20:53 +00:00
|
|
|
return \Activitypub\Collection\Followers::get_followers( $author_id );
|
2020-04-07 13:03:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static function count_followers( $author_id ) {
|
2023-10-22 22:20:53 +00:00
|
|
|
_deprecated_function( __METHOD__, '1.0.0', '\Activitypub\Collection\Followers::count_followers' );
|
2020-04-07 13:03:04 +00:00
|
|
|
|
2023-10-22 22:20:53 +00:00
|
|
|
return \Activitypub\Collection\Followers::count_followers( $author_id );
|
2020-04-07 13:03:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static function add_follower( $actor, $author_id ) {
|
2023-10-22 22:20:53 +00:00
|
|
|
_deprecated_function( __METHOD__, '1.0.0', '\Activitypub\Collection\Followers::add_follower' );
|
2020-04-07 13:03:04 +00:00
|
|
|
|
2023-10-22 22:20:53 +00:00
|
|
|
return \Activitypub\Collection\Followers::add_follower( $author_id, $actor );
|
2020-04-07 13:03:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static function remove_follower( $actor, $author_id ) {
|
2023-10-22 22:20:53 +00:00
|
|
|
_deprecated_function( __METHOD__, '1.0.0', '\Activitypub\Collection\Followers::remove_follower' );
|
2020-04-07 13:03:04 +00:00
|
|
|
|
2023-10-22 22:20:53 +00:00
|
|
|
return \Activitypub\Collection\Followers::remove_follower( $author_id, $actor );
|
2020-04-07 13:03:04 +00:00
|
|
|
}
|
|
|
|
}
|