Merge pull request #908 from h3poteto/iss-893

closes #893 Remove commas between pinned hashtags in new toot
This commit is contained in:
AkiraFukushima 2019-05-08 22:45:14 +09:00 committed by GitHub
commit 064ab4d44a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ const actions: ActionTree<NewTootState, RootState> = {
},
openModal: ({ dispatch, commit, state }) => {
if (!state.replyToMessage && state.pinedHashtag) {
commit(MUTATION_TYPES.UPDATE_INITIAL_STATUS, state.hashtags.map(t => ` #${t.name}`).join())
commit(MUTATION_TYPES.UPDATE_INITIAL_STATUS, state.hashtags.map(t => `#${t.name}`).join(' '))
}
commit(MUTATION_TYPES.CHANGE_MODAL, true)
dispatch('fetchVisibility')