mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Adds better reusable error message support. Added to fetching remote
posts. /cc @riking
This commit is contained in:
parent
b250aa36a0
commit
558a06a117
6 changed files with 87 additions and 5 deletions
|
@ -151,6 +151,8 @@ class PostsController < ApplicationController
|
|||
doc.content
|
||||
end
|
||||
render json: {cooked: content}
|
||||
rescue
|
||||
render_json_error I18n.t('errors.embed.load_from_remote')
|
||||
end
|
||||
|
||||
def recover
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue