Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: serial updates

Johnnybc97b66f36bc
diff --git a/web/index.html b/web/index.html
index a434cced8..a02a0d357 100644
--- a/web/index.html
+++ b/web/index.html
@@ -10,13 +10,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<!-- memos.metadata.head -->
<title>Memos</title>
- <script>
- // Prevent flash of light mode.
- const appearance = localStorage.getItem("appearance");
- if (appearance === `"dark"`) {
- document.documentElement.classList.add("dark");
- }
- </script>
</head>
<body class="text-base w-full min-h-[100svh] bg-zinc-50 dark:bg-zinc-900">
<div id="root" class="relative w-full min-h-full"></div>
diff --git a/web/src/store/v2/user.ts b/web/src/store/v2/user.ts
index a2ceb76cf..77f2a70f5 100644
--- a/web/src/store/v2/user.ts
+++ b/web/src/store/v2/user.ts
@@ -41,8 +41,8 @@ const userStore = (() => {
};
const fetchUserByUsername = async (username: string) => {
- const user = await userServiceClient.getUser({
- name: username,
+ const user = await userServiceClient.getUserByUsername({
+ username,
});
state.setPartial({
userMapByName: {