mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 11:47:16 +08:00
Replies to topics linked to Zendesk were not being synced. The `after_commit` callback used `topic.custom_fields[...]` which returns memoized data. If a Zendesk ticket was linked by another process after the topic was loaded, the stale cache would return empty and skip the sync job. Query `TopicCustomField.exists?` directly instead of relying on the cached `custom_fields` hash. Internal ref - t/169124 |
||
|---|---|---|
| .. | ||
| engine.rb | ||
| helper.rb | ||
| post_extension.rb | ||
| topic_extension.rb | ||