# Twitter oneboxes 和链接已损坏，现在需要登录

**URL:** https://meta.discourse.org/t/twitter-oneboxes-and-links-broken-now-that-login-is-required/270165
**Category:** Bug
**Created:** [2023 年6 月 30 日 08:53 UTC](https://meta.discourse.org/t/twitter-oneboxes-and-links-broken-now-that-login-is-required/270165 "2023-06-30T08:53:07Z")
**Posts on this page:** 1
**Showing post:** 22

<div class="post-metadata">

### 作者： ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)
#### 发布日期： [2024 年5 月 8 日 13:43 UTC](https://meta.discourse.org/t/twitter-oneboxes-and-links-broken-now-that-login-is-required/270165/22 "2024-05-08T13:43:09Z")

</div>

[open-graph fallback code](https://github.com/discourse/discourse/pull/22187) 在缺少某些特定于 Twitter 的 meta 标签时会出现错误。我有一个修复方案：

> [@Twitter-status onebox error fix](https://meta.discourse.org/t/twitter-status-onebox-error-fix/307203):
>
> There is an error in the twitter onebox code if some meta tags are missing. Apparently the Twitter HTML changed at some point and Murphy’s law kicked in. I opened [a PR](https://github.com/discourse/discourse/pull/26927) that fixes the error and uses meta tags that exist (for now anyways). So basic twitter oneboxes should work once again assuming you don’t get blocked. [image]

---

_[View the full topic](https://meta.discourse.org/t/twitter-oneboxes-and-links-broken-now-that-login-is-required/270165)._
