feat: follow lite forum updates

This commit is contained in:
lezi-fun committed 2026-10-01 14:10:12 +08:00
1 parent f59739e36f
commit b42944b687
38 files changed
+1433 -71

No files matched your search

+3 -3
View File
@@ -13,7 +13,7 @@ const POST_TRANSITION_PARTS = [
['.post-username', 'post-author'],
['.post-title', 'post-heading'],
['.post-time', 'post-time'],
['.post-content', 'post-body'],
['.post-content, .topic-preview', 'post-body'],
['.post-images', 'post-media'],
['.post-pin-state', 'post-pin-state'],
['.post-edited-label', 'post-edited-label'],
@@ -937,8 +937,8 @@ export default function AppProvider({ children, cachedName = '' }) {
return result;
}, []);
const register = useCallback(async (email, password, username, captcha) => {
const result = await API.register(email, password, username, captcha);
const register = useCallback(async (email, password, username, captcha, emailCode = '') => {
const result = await API.register(email, password, username, captcha, emailCode);
const loginResult = await API.login(email, password);
if (loginResult.user) {
setCurrentUser(loginResult.user);