Update activitypub.extend.php

This commit is contained in:
Namhyeon Go 2022-10-13 13:35:52 +09:00 committed by GitHub
parent 709ab3ca78
commit 3e62896e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1275,8 +1275,18 @@ class _GNUBOARD_ActivityPub {
return activitypub_json_encode(activitypub_build_collection($items, "Latest shares"));
}
public static function authorize() {
// TODO
public static function authorize() { // TODO
$result = array();
$grant_type = $_GET['grant_type'];
switch ($grant_type) {
case "authorization_code": break;
case "password": break;
case "client_credentials": break;
}
return activitypub_json_encode($result);
}
public static function close() {