mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-04 21:02:20 +00:00
Check postInfo exists
This commit is contained in:
parent
8b03c459f8
commit
f66da5be15
10
plugin.rb
10
plugin.rb
@ -235,11 +235,11 @@ SQL
|
|||||||
.joins(:user)
|
.joins(:user)
|
||||||
.pluck('post_number', 'username', 'cooked')
|
.pluck('post_number', 'username', 'cooked')
|
||||||
.first
|
.first
|
||||||
|
|
||||||
postInfo[2] = PrettyText.excerpt(postInfo[2], SiteSetting.solved_quote_length)
|
if postInfo
|
||||||
|
postInfo[2] = PrettyText.excerpt(postInfo[2], SiteSetting.solved_quote_length)
|
||||||
return postInfo
|
return postInfo
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def accepted_answer_post_id
|
def accepted_answer_post_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user