AP Bugfix: We hadn't transmitted an tag url at all ...

This commit is contained in:
Michael 2019-01-20 23:13:55 +00:00
父節點 e2427eb9da
當前提交 70c183b495
共有 1 個文件被更改,包括 2 次插入1 次删除

查看文件

@ -755,7 +755,8 @@ class Transmitter
$terms = Term::tagArrayFromItemId($item['id']);
foreach ($terms as $term) {
if ($term['type'] == TERM_HASHTAG) {
$tags[] = ['type' => 'Hashtag', 'href' => $term['url'], 'name' => '#' . $term['term']];
$url = System::baseUrl() . '/search?tag=' . urlencode($term['term']);
$tags[] = ['type' => 'Hashtag', 'href' => $url, 'name' => '#' . $term['term']];
} elseif ($term['type'] == TERM_MENTION) {
$contact = Contact::getDetailsByURL($term['url']);
if (!empty($contact['addr'])) {