fix nodeinfo integration
This commit is contained in:
parent
f4cab6647d
commit
5ce8f28852
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ class Nodeinfo {
|
||||||
*
|
*
|
||||||
* @return array The extended array
|
* @return array The extended array
|
||||||
*/
|
*/
|
||||||
public static function nodeinfo_data( $nodeinfo, $version ) {
|
public static function add_nodeinfo_data( $nodeinfo, $version ) {
|
||||||
if ( $version >= '2.0' ) {
|
if ( $version >= '2.0' ) {
|
||||||
$nodeinfo['protocols'][] = 'activitypub';
|
$nodeinfo['protocols'][] = 'activitypub';
|
||||||
} else {
|
} else {
|
||||||
|
@ -53,7 +53,7 @@ class Nodeinfo {
|
||||||
*
|
*
|
||||||
* @return array The extended array
|
* @return array The extended array
|
||||||
*/
|
*/
|
||||||
public static function nodeinfo2_data( $nodeinfo ) {
|
public static function add_nodeinfo2_data( $nodeinfo ) {
|
||||||
$nodeinfo['protocols'][] = 'activitypub';
|
$nodeinfo['protocols'][] = 'activitypub';
|
||||||
|
|
||||||
$nodeinfo['usage']['users'] = array(
|
$nodeinfo['usage']['users'] = array(
|
||||||
|
|
Loading…
Reference in a new issue