discourse/spec
Ted Johansson 1cde30e6bd
FIX: Don't error out after destroying first post with webhook configured (#31902)
When hard deleting a first post by passing force_destroy: true as an option to PostDestroyer, the post/topic is correctly deleted, and the staff record is created, but the app then errors out.

This only happens on sites with a topic_destroyed webhook setup.

After deleting the record, we pass the topic's ID to TopicView, which then raises an error because it can not load it from the DB.

TopicView supports being initialized with either an ID or an already instantiated record. Since we still have the record in memory after deleting, we can pass that to TopicView.
2025-03-19 16:30:27 +08:00
..
fabricators DEV: Backfill API key scope modes (#31606) 2025-03-11 10:00:27 +08:00
fixtures DEV: Protection for migrations that creates index concurrently take 2 (#31792) 2025-03-17 08:25:30 +08:00
generator DEV: Silence the output of migration specs (#26365) 2024-03-26 11:32:44 +01:00
helpers FIX: twitter_summary_large_image is renamed to x (#31870) 2025-03-19 11:55:11 +11:00
import_export DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
initializers DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
integration FIX: When testing multiple flagged words, ensure test matches expected word order. (#31758) 2025-03-12 09:45:44 +11:00
integrity FIX: cross origin opener policy should apply to public error responses (#31559) 2025-03-03 17:04:24 +08:00
jobs FIX: twitter_summary_large_image is renamed to x (#31870) 2025-03-19 11:55:11 +11:00
lib FIX: Don't error out after destroying first post with webhook configured (#31902) 2025-03-19 16:30:27 +08:00
mailers FEATURE: add support for One-Click unsubscribe (RFC 8058) 2024-12-31 15:28:59 +01:00
migrations DEV: Backfill API key scope modes (#31606) 2025-03-11 10:00:27 +08:00
models DEV: Make group auto e-mail domain limit configurable (#31873) 2025-03-19 14:33:50 +08:00
multisite FIX: Include original filename in s3 uploads even if not attachment (#30789) 2025-01-15 18:08:18 +08:00
queries/reports DEV: Refactor reports index into service (#31667) 2025-03-11 14:36:06 +10:00
requests FIX: Amend broken group automatic member dialog (#31854) 2025-03-18 19:37:37 +08:00
script/import_scripts DEV: Catch missing translations during test runs (#26258) 2024-05-24 22:15:53 +08:00
serializers FIX: When displaying a reviewable, don't append the title to the content (#31851) 2025-03-18 11:57:39 +11:00
services DEV: Destroy posts rake task enhancements (#31739) 2025-03-14 13:20:43 +08:00
support Revert "DEV: Add rake task to bulk delete posts" (#31607) 2025-03-04 20:54:03 +08:00
system FIX: Updating a group without e-mail domains (#31896) 2025-03-19 10:38:41 +08:00
tasks DEV: Add rake task to bulk delete posts (#31642) 2025-03-05 09:31:23 +08:00
views FEATURE: Simplify crawler content for non-canonical post URLs (#26324) 2024-03-26 15:18:46 +00:00
rails_helper.rb DEV: Upgrade Sidekiq to v7.3.9 2025-03-10 15:02:48 +01:00
regenerate_swagger_docs
swagger_helper.rb DEV: Bump rswag-specs from 2.11.0 to 2.13.0 (#24654) 2023-12-07 08:16:47 +08:00