diff --git a/js/feed.js b/js/feed.js
index ed95046..f5e0560 100644
--- a/js/feed.js
+++ b/js/feed.js
@@ -83,16 +83,8 @@ function renderFeed() {
- ${replyCount}
+ ${replyCount} 条回复
-
- ${currentUser && currentUser.id === p.user_id ? `
` : ''}
${signatureHtml}
@@ -195,27 +187,10 @@ function renderFeed() {
});
});
- container.querySelectorAll('.action-report').forEach(btn => {
- btn.addEventListener('click', function(e) {
- e.stopPropagation();
- if (!currentUser) { showToast('请先登录', 'warning'); return; }
- reportTargetPostId = this.dataset.postid;
- document.getElementById('reportModal').classList.add('active');
- });
- });
- container.querySelectorAll('.action-delete').forEach(btn => {
- btn.addEventListener('click', async function(e) {
- e.stopPropagation();
- const ok = await showConfirm('确定要删除这条帖子吗?', {
- title: '删除帖子', confirmText: '删除', danger: true,
- });
- if (!ok) return;
- API.deletePost(this.dataset.postid).then(() => {
- renderFeed();
- renderStats();
- }).catch(err => showToast('删除失败:' + err.message, 'error'));
- });
- });
+ // 卡片上不再放举报与删除按钮:这两个操作针对的是帖子内容本身,
+ // 放在卡片上容易被误解为对整张卡片操作,也容易误点。
+ // 它们统一放在帖子详情页,用户点进帖子后操作。
+ // (卡片的点击跳转绑定在上方,此处无需重复绑定。)
}).catch(err => {
container.innerHTML = '