# 不在嵌入式媒体帖子允许组中的用户可以通过复制上传的图片链接来绕过上传限制

**URL:** <https://meta.discourse.org/t/users-not-in-embedded-media-post-allowed-groups-can-bypass-upload-restriction-by-copying-the-uploaded-image-link/387368>\
**Category:** Bug\
**Created:** [2025 年11 月 1 日 22:54 UTC](https://meta.discourse.org/t/users-not-in-embedded-media-post-allowed-groups-can-bypass-upload-restriction-by-copying-the-uploaded-image-link/387368 "2025-11-01T22:54:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
发布日期： [2026 年11 月 16 日 09:55 UTC](https://meta.discourse.org/t/users-not-in-embedded-media-post-allowed-groups-can-bypass-upload-restriction-by-copying-the-uploaded-image-link/387368/6 "2026-11-16T09:55:52Z")

</div>

抱歉，@copymonopoly，处理时间比预期要长，但问题应该已经通过以下链接修复了：

> <https://github.com/discourse/discourse/pull/45823>
>
> Users outside \`embedded\_media\_post\_allowed\_groups\` could still embed media:
> 
> \- t…he composer accepted image, video and audio uploads, so their URLs could be reused in a post
> \- media URLs on their own line (external images, uploaded videos and audio) render as oneboxes, which \`PostAnalyzer#embedded\_media\_count\` ignored because it counted from the stripped cooked HTML
> \- video uploads render as \`.video-placeholder-container\`, not \`\<video\>\`, so they weren't counted either
> \- a link whose URL doesn't look like media but whose response is (an image served without an extension) became a media onebox after validation
> 
> This change:
> 
> \- counts rendered media (excluding rich onebox previews) and pending media oneboxes in \`embedded\_media\_count\`
> \- adds \`Guardian#can\_embed\_media?\`, used by the post validator and exposed as \`can\_embed\_media\` on the current user
> \- refuses image, video and audio uploads in the composer when the user can't embed media
> \- keeps a onebox as a link when it resolves to media its URL didn't reveal and one of the post's writers (author or editors) can't embed media, needs media review, or is a new user at their limit; the same check applies when cooking inserts a cached onebox and when post processing resolves one
> \- rewords the embedded media errors to say what is still allowed (links)
> 
> Not breaking at default settings. Sites that restrict these settings will notice:
> 
> \- restricted users can't upload audio or video in the composer, even as attachments
> \- video uploads and media URLs now count towards \`newuser\_max\_embedded\_media\` and \`skip\_review\_media\_groups\`
> \- restricted users can't save edits to older posts that contain such media
> \- for restricted users, links that only turn out to be media once fetched stay links
> 
> Ref - https://meta.discourse.org/t/387368

---

_[View the full topic](https://meta.discourse.org/t/users-not-in-embedded-media-post-allowed-groups-can-bypass-upload-restriction-by-copying-the-uploaded-image-link/387368)._
