# 当摘录包含链接时出现奇怪的行为，原因在于 Topic list preview 插件

**URL:** <https://meta.discourse.org/t/strange-behavior-when-an-excerpt-has-links-due-to-topic-list-preview-plugin/171241>\
**Category:** Support\
**Created:** [2020年十一月25日 03:10 UTC](https://meta.discourse.org/t/strange-behavior-when-an-excerpt-has-links-due-to-topic-list-preview-plugin/171241 "2020-11-25T03:10:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [2020年十一月25日 04:15 UTC](https://meta.discourse.org/t/strange-behavior-when-an-excerpt-has-links-due-to-topic-list-preview-plugin/171241/3 "2020-11-25T04:15:05Z")

</div>

我不确定，但我注意到 JSON 负载中的 `excerpt` 字段没有剥离链接。

此外，Topic List Previews 插件的作者 @merefield 最近也遇到了包含链接的摘要问题：[Excerpts are being poisoned by onebox URL's on Post Rebuild](https://meta.discourse.org/t/excerpts-are-being-poisoned-by-onebox-urls-on-post-rebuild/166372)

**编辑** ：你说得对，@awesomerobot，这是 Topic List Previews 的一个特定问题。我刚在我的实例上禁用了它，问题就消失了。看起来 TLP 覆盖了默认的 `excerpt` 序列化器，因为在我禁用它之后，JSON 负载中的所有链接都被剥离了。我想这个问题出在 [这里](https://github.com/paviliondev/discourse-topic-previews/blob/6ece3527294734b85947e74afad8e03387f1d982/serializers/topic_list_item_edits_mixin.rb#L4)，但我不太确定。

这不是 Discourse 的 bug，抱歉造成混淆。我应该删除原帖，还是把它留在这里供后人参考？你有什么建议吗？

谢谢。

---

_[View the full topic](https://meta.discourse.org/t/strange-behavior-when-an-excerpt-has-links-due-to-topic-list-preview-plugin/171241)._
