give hashtags a type, even though the spec says they are the default type.

This commit is contained in:
Mike Macgirvin 2023-01-25 07:54:10 +11:00
parent b075e87715
commit c8d7ffc447

View file

@ -497,7 +497,7 @@ class Activity
case TERM_HASHTAG:
// An id is required so if there is no url in the taxonomy, ignore it and keep going.
if ($t['url']) {
$ret[] = ['id' => $t['url'], 'name' => '#' . $t['term']];
$ret[] = [ 'type' => 'Hashtag', id' => $t['url'], 'name' => '#' . $t['term']];
}
break;