Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add hashtag-temp feature #33

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+7 −3
Diff settings

Always

Just for now

Prev

fix: null bug fix

  • Loading branch information...
wakin- committed Apr 4, 2019
commit 7e52e5b31c7c5890d3fcdad95e83775e16530964
@@ -67,6 +67,10 @@ const initialState = ImmutableMap({
tagTemplate: '',
});

function getTagTemplate() {
return tagTemplate.get(me) || '';
}

function statusToTextMentions(state, status) {
let set = ImmutableOrderedSet([]);

@@ -89,7 +93,7 @@ function clearAll(state) {
map.set('sensitive', false);
map.update('media_attachments', list => list.clear());
map.set('idempotencyKey', uuid());
map.set('tagTemplate', tagTemplate.get(me));
map.set('tagTemplate', getTagTemplate());
});
};

@@ -252,7 +256,7 @@ export default function compose(state = initialState, action) {
map.set('spoiler_text', '');
map.set('privacy', state.get('default_privacy'));
map.set('idempotencyKey', uuid());
map.set('tagTemplate', tagTemplate.get(me));
map.set('tagTemplate', getTagTemplate());
});
case COMPOSE_SUBMIT_REQUEST:
return state.set('is_submitting', true);
@@ -328,7 +332,7 @@ export default function compose(state = initialState, action) {
map.set('focusDate', new Date());
map.set('caretPosition', null);
map.set('idempotencyKey', uuid());
map.set('tagTemplate', tagTemplate.get(me));
map.set('tagTemplate', getTagTemplate());

if (action.status.get('spoiler_text').length > 0) {
map.set('spoiler', true);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.