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)
|
||||
.pluck('post_number', 'username', 'cooked')
|
||||
.first
|
||||
|
||||
postInfo[2] = PrettyText.excerpt(postInfo[2], SiteSetting.solved_quote_length)
|
||||
|
||||
return postInfo
|
||||
|
||||
|
||||
if postInfo
|
||||
postInfo[2] = PrettyText.excerpt(postInfo[2], SiteSetting.solved_quote_length)
|
||||
return postInfo
|
||||
end
|
||||
end
|
||||
|
||||
def accepted_answer_post_id
|
||||
|
|
Loading…
Reference in New Issue