mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Make find_post_using raise only Discourse::NotFound (#16133)
This commit is contained in:
@@ -869,7 +869,7 @@ class PostsController < ApplicationController
|
||||
post = finder.with_deleted.first
|
||||
raise Discourse::NotFound unless post
|
||||
|
||||
post.topic = Topic.with_deleted.find(post.topic_id)
|
||||
post.topic = Topic.with_deleted.find_by(id: post.topic_id)
|
||||
|
||||
if !post.topic ||
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user