according to spec this should be id instead of href

This commit is contained in:
Mario
2023-01-25 13:06:50 +00:00
parent ca4ad836a3
commit 213c8a6eec

View File

@@ -595,9 +595,9 @@ class Activity {
foreach ($item['term'] as $t) {
switch ($t['ttype']) {
case TERM_HASHTAG:
// href is required so if we don't have a url in the taxonomy, ignore it and keep going.
// id is required so if we don't have a url in the taxonomy, ignore it and keep going.
if ($t['url']) {
$ret[] = ['type' => 'Hashtag', 'href' => $t['url'], 'name' => '#' . $t['term']];
$ret[] = ['type' => 'Hashtag', 'id' => $t['url'], 'name' => '#' . $t['term']];
}
break;