mirror of
https://github.com/funamitech/mastodon
synced 2024-12-02 00:38:33 +09:00
92afd29650
Adding better errors for the API controllers, posting a simple status works from the frontend now
14 lines
359 B
JavaScript
14 lines
359 B
JavaScript
import { SET_ACCESS_TOKEN } from '../actions/meta';
|
|
import Immutable from 'immutable';
|
|
|
|
const initialState = Immutable.Map();
|
|
|
|
export default function meta(state = initialState, action) {
|
|
switch(action.type) {
|
|
case SET_ACCESS_TOKEN:
|
|
return state.set('access_token', action.token);
|
|
default:
|
|
return state;
|
|
}
|
|
}
|