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:
johnnyjoygh
2026-09-27 08:23:17 +08:00
parent 200b4d0920
commit 2c889d14ee
+5 -2
View File
@@ -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}
/>