Alcea
|
30de670dce
|
Add files via upload
Set indexable to true too
$profileObject = [
'@context' => 'https://www.w3.org/ns/activitystreams',
'id' => "$baseUrl/$username",
'type' => 'Person',
'name' => 'Alcea Bot',
'discoverable' => true, // Update the discoverable field
'locked' => false,
'bot' => false,
// Add any other fields you need to update
'preferredUsername' => $username,
'summary' => formatDescriptionLinks($description),
'icon' => [
'type' => 'Image',
'mediaType' => 'image/gif',
'url' => $imageUrl,
],
'inbox' => "$baseUrl/$username/inbox",
'outbox' => "$baseUrl/$username/outbox",
'followers' => "$baseUrl/$username/followers",
'publicKey' => [
'id' => "$baseUrl/$username#main-key",
'owner' => "$baseUrl/$username",
'publicKeyPem' => @file_get_contents(__DIR__ . '/public.pem'),
'publicKeyPem' => @file_get_contents(__DIR__ . '/public.pem'),
],
'fields' => $fields,
'discoverability' => 'public', // <-- Here is the key for discoverability
'indexable' => 'true',
];
|
2025-07-20 14:17:59 +02:00 |
|
Alcea
|
51cb44529a
|
Add files via upload
updateprofile.phpxwill now change discoverable:true
$profileObject = [
'@context' => 'https://www.w3.org/ns/activitystreams',
'id' => "$baseUrl/$username",
'type' => 'Person',
'name' => 'Alcea Bot',
'discoverable' => true, // Update the discoverable field
'locked' => false,
'bot' => false,
// Add any other fields you need to update
'preferredUsername' => $username,
'summary' => formatDescriptionLinks($description),
'icon' => [
'type' => 'Image',
'mediaType' => 'image/gif',
'url' => $imageUrl,
],
|
2025-07-16 00:27:25 +02:00 |
|