# 主题列表预览（旧版）

**URL:** https://meta.discourse.org/t/topic-list-previews-legacy/101646
**Category:** Plugin
**Tags:** deprecated
**Created:** [2018年十一月9日 03:56 UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646 "2018-11-09T03:56:38Z")
**Posts on this page:** 1
**Showing post:** 1382

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2020年十一月26日 09:24 UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1382 "2020-11-26T09:24:52Z")

</div>

> [@Strange behavior when an excerpt has links due to Topic list preview plugin](https://meta.discourse.org/t/strange-behavior-when-an-excerpt-has-links-due-to-topic-list-preview-plugin/171241/3?u=merefield):
>
> I don’t know, what I noticed is that the excerpt field from the JSON payload doesn’t have links stripped out. Plus, the Topic List Previews plugin author, @merefield, also had some issues with excerpts with links recently: [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) EDIT: You’re right @awesomerobot, this is a specific issue with the Topic List Previews. I just disabled it on my instance and the issue is gone, it looks like TLP is overriding the default excerpt serializer becaus…

@renato, @falco 我不认为这是 TLP 的 bug。

为了证明我的观点，请_重建_一个包含链接的 OP，然后检查摘录（不安装 TLP）。例如，使用摘录主题组件：

例如：

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/7/b79a903d29725cdda8f1bf6fde2c4428d60e640a.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/5/95a5ac6293450a30d1bc7b165fad356571b68a56.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/4/9470030ceb5b19d1e0a48dc87bb00caad6f324fb.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/9/297c8f83d955c5a484b7ff503158d082ddfcf0fa.png)

如您所见，摘录中混杂了链接。上述情况与 TLP 无关。

不过，我为此创建了一个变通方案，并在设置中提供了排除链接的选项：

[https://github.com/merefield/discourse-topic-previews/commit/bdd7ba0baeb1bafc06658379a15affc0e861b7fd](https://github.com/merefield/discourse-topic-previews/commit/bdd7ba0baeb1bafc06658379a15affc0e861b7fd)

![image](https://global.discourse-cdn.com/meta/original/3X/f/d/fdf8a4ec4c6bb39802eaf476738c4b4b841f265d.png)

此功能仅实现在基于 TLP 主题组件（TC）的设置中，我尚未将其移植回主插件。我倾向于专注于为 TC 添加新功能。此外，如果核心代码中已修复此问题，那么扩散此修复也没有意义。

---

_[View the full topic](https://meta.discourse.org/t/topic-list-previews-legacy/101646)._
