mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 16:23:37 +08:00
99876e9e36
An initial stab at flarum/core#126. Still WIP. Preliminary implementation of flarum/core#128 and flarum/core#13.
10 lines
292 B
JavaScript
10 lines
292 B
JavaScript
export default function(app) {
|
|
app.store.pushPayload({data: app.preload.data});
|
|
app.forum = app.store.getById('forums', 1);
|
|
|
|
if (app.preload.session) {
|
|
app.session.token(app.preload.session.token);
|
|
app.session.user(app.store.getById('users', app.preload.session.userId));
|
|
}
|
|
}
|