diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-30 13:10:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 13:10:40 +0200 |
commit | 648cdbc04a21580a89d337edb0f45308aff1b93f (patch) | |
tree | 74cd75e61d937583617e952ae92a07327021de03 /app/javascript | |
parent | b31b232edfcc7f04acf828bf6829ab716b290692 (diff) |
Add hashtag score for better sorting of autosuggestions (#11427)
* Add hashtag score for better sorting of autosuggestions * Do not use `~<~` operator with no text_pattern_ops index
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/reducers/compose.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js index e683a9c1a..7b0cdd5a5 100644 --- a/app/javascript/mastodon/reducers/compose.js +++ b/app/javascript/mastodon/reducers/compose.js @@ -153,9 +153,9 @@ const sortHashtagsByUse = (state, tags) => { if (usedA === usedB) { return 0; } else if (usedA && !usedB) { - return 1; - } else { return -1; + } else { + return 1; } }); }; |