2018-12-07 23:02:18 +00:00
|
|
|
<?php
|
2019-11-18 19:57:00 +00:00
|
|
|
namespace Activitypub\Peer;
|
2018-12-07 23:02:18 +00:00
|
|
|
|
2019-02-24 12:01:28 +00:00
|
|
|
/**
|
|
|
|
* ActivityPub Followers DB-Class
|
|
|
|
*
|
|
|
|
* @author Matthias Pfefferle
|
|
|
|
*/
|
2019-02-24 11:07:41 +00:00
|
|
|
class Followers {
|
2018-12-07 23:02:18 +00:00
|
|
|
|
2018-12-20 10:33:08 +00:00
|
|
|
public static function get_followers( $author_id ) {
|
2023-04-21 13:57:21 +00:00
|
|
|
_deprecated_function( __METHOD__, '1.0.0', '\Activitypub\Collection\Followers::get_followers' );
|
2019-02-17 20:09:24 +00:00
|
|
|
|
2023-04-24 18:46:51 +00:00
|
|
|
return \Activitypub\Collection\Followers::get_followers( $author_id );
|
2018-12-07 23:02:18 +00:00
|
|
|
}
|
|
|
|
|
2019-08-21 08:38:43 +00:00
|
|
|
public static function count_followers( $author_id ) {
|
2023-04-21 13:57:21 +00:00
|
|
|
_deprecated_function( __METHOD__, '1.0.0', '\Activitypub\Collection\Followers::count_followers' );
|
2019-08-21 08:38:43 +00:00
|
|
|
|
2023-04-21 13:57:21 +00:00
|
|
|
return \Activitypub\Collection\Followers::count_followers( $author_id );
|
2019-08-21 08:38:43 +00:00
|
|
|
}
|
|
|
|
|
2018-12-07 23:02:18 +00:00
|
|
|
public static function add_follower( $actor, $author_id ) {
|
2023-04-21 13:57:21 +00:00
|
|
|
_deprecated_function( __METHOD__, '1.0.0', '\Activitypub\Collection\Followers::add_follower' );
|
2019-02-02 22:56:05 +00:00
|
|
|
|
2023-04-25 07:31:28 +00:00
|
|
|
return \Activitypub\Collection\Followers::add_follower( $author_id, $actor );
|
2018-12-07 23:02:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static function remove_follower( $actor, $author_id ) {
|
2023-04-21 13:57:21 +00:00
|
|
|
_deprecated_function( __METHOD__, '1.0.0', '\Activitypub\Collection\Followers::remove_follower' );
|
2018-12-07 23:02:18 +00:00
|
|
|
|
2023-04-21 13:57:21 +00:00
|
|
|
return \Activitypub\Collection\Followers::remove_follower( $author_id, $actor );
|
2018-12-07 23:02:18 +00:00
|
|
|
}
|
|
|
|
}
|