mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 23:21:58 +08:00
Currently, when uploads have a different SHA1 in their URL from the one that has been computed (it can happen with secure uploads), and those uploads are images, then the cooked post processor won’t link them properly to their post. The post has them as `Post#uploads` but not as `Post#image_upload`. This in turn will make the associated topic thumbnail-less when the post is the first one. To address the issue, it’s a matter of adding fallbacks to `CookedPostProcessor#update_post_image` when fetching the uploads. This is something we already do in `HasPostUploadReferences#link_post_uploads`. |
||
|---|---|---|
| .. | ||
| reports | ||
| anon_cache_invalidator.rb | ||
| cached_counting.rb | ||
| category_hashtag.rb | ||
| custom_field.rb | ||
| has_custom_fields.rb | ||
| has_deprecated_columns.rb | ||
| has_destroyed_web_hook.rb | ||
| has_post_upload_references.rb | ||
| has_sanitizable_fields.rb | ||
| has_search_data.rb | ||
| has_url.rb | ||
| limited_edit.rb | ||
| locale_matchable.rb | ||
| localizable.rb | ||
| positionable.rb | ||
| reviewable_action_builder.rb | ||
| roleable.rb | ||
| searchable.rb | ||
| second_factor_manager.rb | ||
| stats_cacheable.rb | ||
| topic_tracking_state_publishable.rb | ||
| trashable.rb | ||