From: ThibG Date: Mon, 14 Jan 2019 22:29:21 +0000 (+0100) Subject: Make hashtag search results link to the hashtag URL (#9810) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=6cfb357940b3855ce53f6d1dfd87b1b32840a302;p=mastodon.git Make hashtag search results link to the hashtag URL (#9810) Currently, middle-clicking on a hashtag search result will open a new instance of the WebUI, which is inconsistent with middle-clicking on an account result, or a hashtag in a toot. --- diff --git a/app/javascript/mastodon/components/hashtag.js b/app/javascript/mastodon/components/hashtag.js index a407df31e..f091d7893 100644 --- a/app/javascript/mastodon/components/hashtag.js +++ b/app/javascript/mastodon/components/hashtag.js @@ -1,16 +1,16 @@ import React from 'react'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; -import { Link } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; +import Permalink from './permalink'; import { shortNumberFormat } from '../utils/numbers'; const Hashtag = ({ hashtag }) => (
- + #{hashtag.get('name')} - + {shortNumberFormat(hashtag.getIn(['history', 0, 'accounts']))} }} />