Browse Source
fix hashtag ordering (#2107)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
closed-social-glitch-2
Dean Bassett
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
app/javascript/flavours/glitch/reducers/compose.js
|
|
@ -282,9 +282,9 @@ const sortHashtagsByUse = (state, tags) => { |
|
|
|
if (usedA === usedB) { |
|
|
|
return 0; |
|
|
|
} else if (usedA && !usedB) { |
|
|
|
return 1; |
|
|
|
} else { |
|
|
|
return -1; |
|
|
|
} else { |
|
|
|
return 1; |
|
|
|
} |
|
|
|
}); |
|
|
|
}; |
|
|
|