8000 置顶memo筛选处理 by Jinvic · Pull Request #286 · kingwrcy/moments · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

置顶memo筛选处理 #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 20, 2025
Merged

置顶memo筛选处理 #286

merged 3 commits into from
Feb 20, 2025

Conversation

Jinvic
Copy link
Contributor
@Jinvic Jinvic commented Feb 17, 2025

这个 PR 做了什么?

fix #262

原memo列表的逻辑为:只筛选未置顶memo,置顶memo固定置顶展示。
改为:筛选所有memo,若仍有置顶memo再置顶展示。

测试镜像: jinvic/moments:test

@xuewenG
Copy link
Collaborator
xuewenG commented Feb 19, 2025

辛苦了,今天晚上会 review 一下

@xuewenG
Copy link
Collaborator
xuewenG commented Feb 19, 2025

看起来这个 PR 先分页再排序置顶,如果被置顶的 memo 不在当前页,是否会被漏掉?即,如果 memo 的数量大于 1 页时,将最早发布的 memo 置顶后,并不能在第 1 页的头部看见。

@Jinvic
Copy link
Contributor Author
Jinvic commented Feb 19, 2025

看起来这个 PR 先分页再排序置顶,如果被置顶的 memo 不在当前页,是否会被漏掉?即,如果 memo 的数量大于 1 页时,将最早发布的 memo 置顶后,并不能在第 1 页的头部看见。

你说得对,这是我的疏忽。我准备修改一下。

@Jinvic Jinvic marked this pull request as draft February 19, 2025 15:28
@Jinvic Jinvic marked this pull request as ready for review February 20, 2025 11:37
@xuewenG xuewenG merged commit 6ef0256 into kingwrcy:dev Feb 20, 2025
@xuewenG xuewenG added the bugfix Bug fix label Feb 20, 2025
@xuewenG xuewenG added this to the v0.2.9 milestone Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

标签页面是否应该不显示置顶memo
2 participants
0