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(web): only honor pinned memos in single-creator feeds

johnnyjoygh2c889d14eec3
diff --git a/web/src/pages/Home.tsx b/web/src/pages/Home.tsx
index b9ebe44a9..6054c370d 100644
--- a/web/src/pages/Home.tsx
+++ b/web/src/pages/Home.tsx
@@ -34,9 +34,12 @@ const Home = () => {
includePinned: true,
});
const canComposeInScope = Boolean(user && (!creatorUsername || creatorUsername === user.username));
+ // Pinning is the owner's arrangement of their own memos, so it only shapes a single
+ // creator's feed; a mixed-author feed like Explore stays purely chronological.
+ const honorPinned = Boolean(creatorUsername);
const { listSort, orderBy } = useMemoSorting({
- pinnedFirst: true,
+ pinnedFirst: honorPinned,
state: State.NORMAL,
});
@@ -50,7 +53,7 @@ const Home = () => {
memo={memo}
showCreator={!creatorUsername}
showVisibility
- showPinned
+ showPinned={honorPinned}
showSpace={!selectedSpaceName}
compact={compact}
/>