Skip to content

Restore hashtag suggestions from local tag history#11632

Merged
Gargron merged 4 commits intomastodon:masterfrom
ClearlyClaire:fixes/local-tag-history
Aug 22, 2019
Merged

Restore hashtag suggestions from local tag history#11632
Gargron merged 4 commits intomastodon:masterfrom
ClearlyClaire:fixes/local-tag-history

Conversation

@ClearlyClaire
Copy link
Copy Markdown
Contributor

@ClearlyClaire ClearlyClaire commented Aug 20, 2019

I'm not happy about mixing ImmutableJS and native lists/objects here, but it seems like the best way to make it work both for when the REST API hasn't replied yet and for results are gotten from it…

EDIT: also not super happy about it claiming there has been 0 uses in the week when the tag data isn't from API results

Example when #CatPosting isn't approved (but has been used locally) but #cat is:
Peek 21-08-2019 13-13

Comment thread app/javascript/mastodon/reducers/compose.js Outdated
@Gargron Gargron merged commit 5ab1e0e into mastodon:master Aug 22, 2019
@Gargron
Copy link
Copy Markdown
Member

Gargron commented Aug 22, 2019

EDIT: also not super happy about it claiming there has been 0 uses in the week when the tag data isn't from API results

It should be possible to fetch the data for those tags

hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
* Restore hashtag suggestions from local tag history

* Append local hashtag suggestions instead of prepending them

* Do not display inaccurate usage statistics for hashtags not retrieved from API

* Fixup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants