// 'type' => 'Link',
// 'mediaType' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
// 'href' => $quote_url,
- // 'name' => BBCode::convertForUriId($item['uri-id'], $quote_url, BBCode::ACTIVITYPUB)
+ // 'name' => '♲ ' . BBCode::convertForUriId($item['uri-id'], $quote_url, BBCode::ACTIVITYPUB)
//];
}
$shared = BBCode::fetchShareAttributes($body);
if (!empty($shared['link']) && !empty($shared['guid']) && !empty($shared['comment'])) {
- $body = self::ReplaceSharedData($body);
+ $body = self::replaceSharedData($body);
$data['quoteUrl'] = $shared['link'];
}
$shared = BBCode::fetchShareAttributes($richbody);
if (!empty($shared['link']) && !empty($shared['guid']) && !empty($shared['comment'])) {
- $richbody = self::ReplaceSharedData($richbody);
+ $richbody = self::replaceSharedData($richbody);
}
$richbody = BBCode::removeAttachment($richbody);
* @param string $body
* @return string
*/
- private static function ReplaceSharedData(string $body): string
+ private static function replaceSharedData(string $body): string
{
return BBCode::convertShare(
$body,
function (array $attributes) {
- return $attributes['link'];
+ return '♲ ' . $attributes['link'];
}
);
}