Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
host
Smilodon
Commits
41b4be69
Commit
41b4be69
authored
Dec 04, 2016
by
Eugen Rochko
Browse files
Fix rule
parent
d5da55c6
Changes
1
Show whitespace changes
Inline
Side-by-side
app/assets/javascripts/components/actions/compose.jsx
View file @
41b4be69
...
@@ -70,8 +70,13 @@ export function submitCompose() {
...
@@ -70,8 +70,13 @@ export function submitCompose() {
unlisted
:
getState
().
getIn
([
'
compose
'
,
'
unlisted
'
])
unlisted
:
getState
().
getIn
([
'
compose
'
,
'
unlisted
'
])
}).
then
(
function
(
response
)
{
}).
then
(
function
(
response
)
{
dispatch
(
submitComposeSuccess
({
...
response
.
data
}));
dispatch
(
submitComposeSuccess
({
...
response
.
data
}));
// To make the app more responsive, immediately get the status into the columns
dispatch
(
updateTimeline
(
'
home
'
,
{
...
response
.
data
}));
dispatch
(
updateTimeline
(
'
home
'
,
{
...
response
.
data
}));
if
(
response
.
data
.
in_reply_to_id
===
null
)
{
dispatch
(
updateTimeline
(
'
public
'
,
{
...
response
.
data
}));
dispatch
(
updateTimeline
(
'
public
'
,
{
...
response
.
data
}));
}
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
dispatch
(
submitComposeFail
(
error
));
dispatch
(
submitComposeFail
(
error
));
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment