Merge pull request #22 from ANONYMOUSZED-beep/fix/server-owned-audit-logs

Make audit logs server owned
This commit is contained in:
lezi authored and GitHub committed 2026-08-13 22:26:48 +08:00
commit f074ab890c
6 files changed
+81 -28

No files matched your search

+2 -2
View File
@@ -1091,7 +1091,7 @@ async function init() {
try {
const user = await API.getMe();
currentUser = user;
API.logEvent('login').catch(() => {});
} catch (e) {
token = null;
localStorage.removeItem('forumlify-token');
@@ -1242,7 +1242,7 @@ async function init() {
});
try {
await API.createPost(title, content, images);
API.logEvent('create_post').catch(() => {});
alert('发布成功!');
switchPage('feed');
renderFeed();