引用包含链接的帖子(仍然)会触发“重复链接”教育提示

Following up on this thread, which was locked:

Currently, this behaves correctly if you start a reply using the quote button, but the issue still occurs if you have an existing reply and use the quote button to add text to it. If the quote contains a link, and the other conditions for the warning are met (quoted post sent within the last two weeks), you’ll see the duplicate-link warning.

Quoting the warning message so someone searching for it can find this thread: :slight_smile:

It looks like your link to [domain] was already posted in the topic by [user] in a reply on [date] – are you sure you want to post it again?

3 个赞

That’s correct from my perspective, as you are reposting the same link, albeit in a quote… it’s still another instance of the link in the topic.

Hmm, okay. I’m probably misunderstanding the purpose of the warning. My assumption was that it was basically a heuristic to detect redundant discussion: if your post happens to include the same link as another post, you probably didn’t read that post (or else you wouldn’t have thought it necessary to post the link again), and you’re probably trying to make a similar statement (since both you and the other poster thought the link was relevant). That reasoning wouldn’t apply if you’re quoting the other post to respond to it.

If the warning appearing in this case is correct, then the bug is that it doesn’t appear if you use the quote button to start a reply. For some reason it seems to hit the postNumber === linkInfo.post_number check in link-lookup.js.es6.

4 个赞

我也刚注意到这一点,想提交一个 bug……在我看来,如果我引用某人,就需要原封不动地保留他们所说的话,所以这并不像错误提示说的那样是“我的链接”,

看起来您指向 rclone.org 的链接已被发布

这实际上是原帖作者的链接。依我看,被引用的链接应排除在此警告之外。我花了几分钟时间浏览了整个帖子,想看看自己是否漏掉了某个链接,后来才意识到该警告指的是引用内容。

2 个赞

不过,这仍然是一个重复链接。

1 个赞

如果讲究技术细节的话,这仍然不是“你的链接” :slight_smile: 如果链接位于消息的引用部分,说“你引用的链接”会……少一些恼人。