mirror of
https://github.com/usememos/memos.git
synced 2026-11-23 20:39:14 +01:00
fix(web): only honor pinned memos in single-creator feeds
Explore mixed other users' pinned memos to the top and showed the pinned mark on them. Pinning is the owner's arrangement of their own memos, so pinned-first ordering and the mark now apply only when the feed is scoped to one creator (Home, user profile); Explore stays chronological.
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user