mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Merge pull request #1760 from dv2/fix_spelling
Correct few spelling in the comments
This commit is contained in:
commit
90bf3cc3d4
5 changed files with 5 additions and 5 deletions
|
@ -120,7 +120,7 @@ class TopicsController < ApplicationController
|
|||
title, raw = params[:title], params[:raw]
|
||||
[:title, :raw].each { |key| check_length_of(key, params[key]) }
|
||||
|
||||
# Only suggest similar topics if the site has a minimmum amount of topics present.
|
||||
# Only suggest similar topics if the site has a minimum amount of topics present.
|
||||
topics = Topic.similar_to(title, raw, current_user).to_a if Topic.count_exceeds_minimum?
|
||||
|
||||
render_serialized(topics, BasicTopicSerializer)
|
||||
|
|
|
@ -40,7 +40,7 @@ module Jobs
|
|||
puts "Failed to pull hotlinked image: #{src} - Image is bigger than #{@max_size}"
|
||||
end
|
||||
end
|
||||
# have we successfuly downloaded that file?
|
||||
# have we successfully downloaded that file?
|
||||
if downloaded_urls[src].present?
|
||||
url = downloaded_urls[src]
|
||||
escaped_src = src.gsub("?", "\\?").gsub(".", "\\.").gsub("+", "\\+")
|
||||
|
|
|
@ -3,7 +3,7 @@ class HotTopic < ActiveRecord::Base
|
|||
belongs_to :topic
|
||||
belongs_to :category
|
||||
|
||||
# Here's the current idea behind the implementaiton of hot: random can produce good results!
|
||||
# Here's the current idea behind the implementation of hot: random can produce good results!
|
||||
# Hot is currently made up of a random selection of high percentile topics. It includes mostly
|
||||
# new topics, but also some old ones for variety.
|
||||
def self.refresh!
|
||||
|
|
|
@ -138,7 +138,7 @@ class TopicUser < ActiveRecord::Base
|
|||
|
||||
# In case anyone seens "seen_post_count" and gets confused, like I do.
|
||||
# seen_post_count represents the highest_post_number of the topic when
|
||||
# the user visited it. It may be out of alignement with last_read, meaning
|
||||
# the user visited it. It may be out of alignment with last_read, meaning
|
||||
# ... user visited the topic but did not read the posts
|
||||
rows = exec_sql("UPDATE topic_users
|
||||
SET
|
||||
|
|
|
@ -554,7 +554,7 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def add_trust_level
|
||||
# there is a possiblity we did not load trust level column, skip it
|
||||
# there is a possibility we did not load trust level column, skip it
|
||||
return unless has_attribute? :trust_level
|
||||
self.trust_level ||= SiteSetting.default_trust_level
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue