Update activitypub.extend.php

This commit is contained in:
Namhyeon Go 2023-03-03 02:13:52 +09:00 committed by GitHub
parent 7565b29a37
commit 835200e5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -904,7 +904,7 @@ function activitypub_get_objects($mb, $inbox = "inbox") {
function activitypub_build_note($content, $object_id, $mb, $_added_object = array()) {
return array_merge(array(
"type" => "Note",
"generator" => "GNUBOARD5-ActivityPub/" . ACTIVITYPUB_INSTANCE_VERSION . " (" . ACTIVITYPUB_INSTANCE_ID . ")",
"generator" => "G5.ActivityPub/" . ACTIVITYPUB_INSTANCE_VERSION . " (GNUBOARD " . G5_GNUBOARD_VER . "; " . ACTIVITYPUB_INSTANCE_ID . ")",
"id" => $object_id,
"attributedTo" => activitypub_get_url("user", array("mb_id" => $mb['mb_id'])),
"content" => $content,
@ -916,7 +916,7 @@ function activitypub_build_note($content, $object_id, $mb, $_added_object = arra
function activitypub_build_collection($items, $summary = '') {
return array(
"@context" => NAMESPACE_ACTIVITYSTREAMS,
"generator" => "GNUBOARD5-ActivityPub/" . ACTIVITYPUB_INSTANCE_VERSION . " (" . ACTIVITYPUB_INSTANCE_ID . ")",
"generator" => "G5.ActivityPub/" . ACTIVITYPUB_INSTANCE_VERSION . " (GNUBOARD " . G5_GNUBOARD_VER . "; " . ACTIVITYPUB_INSTANCE_ID . ")",
"summary" => $summary,
"type" => "Collection",
"totalItems" => count($items),