wordpress-activitypub/includes/peer/class-followers.php

35 lines
1.1 KiB
PHP
Raw Permalink Normal View History

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