When editing the first post for the topic we do two AJAX requests to two separate controllers in this order: PUT /t/topic-name PUT /posts/2489523 This causes two post revisor calls, which end up triggering the :post_edited DiscourseEvent twice. This is then picked up and sent as a WebHook event twice. However we do not need to send a :post_edited webhook event if the first post is being edited and topic_changed is true from the :post_edited DiscourseEvent, because a second event will shortly come through for just the post. See https://meta.discourse.org/t/post-webhook-fires-two-times-on-post-edited-for-first-post-in-a-topic/162408 Continued on from https://github.com/discourse/discourse/pull/10590 |
||
|---|---|---|
| .. | ||
| 000-development_reload_warnings.rb | ||
| 000-mini_sql.rb | ||
| 000-post_migration.rb | ||
| 000-trace_pg_connections.rb | ||
| 001-redis.rb | ||
| 002-freedom_patches.rb | ||
| 002-rails_failover.rb | ||
| 003-sql_builder.rb | ||
| 004-message_bus.rb | ||
| 005-site_settings.rb | ||
| 006-ensure_login_hint.rb | ||
| 006-mini_profiler.rb | ||
| 008-rack-cors.rb | ||
| 009-omniauth.rb | ||
| 012-web_hook_events.rb | ||
| 013-excon_defaults.rb | ||
| 014-track-setting-changes.rb | ||
| 099-anon-cache.rb | ||
| 099-drain_pool.rb | ||
| 100-i18n.rb | ||
| 100-logster.rb | ||
| 100-oj.rb | ||
| 100-onebox_options.rb | ||
| 100-push-notifications.rb | ||
| 100-quiet_logger.rb | ||
| 100-secret_token.rb | ||
| 100-session_store.rb | ||
| 100-sidekiq.rb | ||
| 100-silence_logger.rb | ||
| 100-strong_parameters.rb | ||
| 100-verify_config.rb | ||
| 100-watch_for_restart.rb | ||
| 100-wrap_parameters.rb | ||
| 101-lograge.rb | ||
| 200-first_middlewares.rb | ||
| 300-perf.rb | ||
| 400-deprecations.rb | ||