Repair: copy legacy joinDate into new user's created_at when creating users from legacy wallz
This commit is contained in:
@@ -87,6 +87,23 @@ function mountToolbarNotifications() {
|
||||
});
|
||||
}
|
||||
|
||||
function mountToolbarMessages() {
|
||||
var rootEl = document.getElementById('toolbar-messages-root');
|
||||
if (!rootEl || rootEl.dataset.reactMounted === 'true') return;
|
||||
|
||||
var props = safeParseJson(rootEl.getAttribute('data-props'), {});
|
||||
rootEl.dataset.reactMounted = 'true';
|
||||
|
||||
void import('./components/social/MessageInboxBadge.jsx')
|
||||
.then(function (module) {
|
||||
var Component = module.default;
|
||||
createRoot(rootEl).render(React.createElement(Component, props));
|
||||
})
|
||||
.catch(function () {
|
||||
rootEl.dataset.reactMounted = 'false';
|
||||
});
|
||||
}
|
||||
|
||||
function mountStorySocial() {
|
||||
var socialRoot = document.getElementById('story-social-root');
|
||||
if (socialRoot && socialRoot.dataset.reactMounted !== 'true') {
|
||||
@@ -130,6 +147,7 @@ function mountStorySocial() {
|
||||
});
|
||||
}
|
||||
|
||||
mountToolbarMessages();
|
||||
mountToolbarNotifications();
|
||||
mountStorySocial();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user