mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:49:06 +08:00
FIX: Don't change return value to blank string.
This commit is contained in:
parent
263a43bcfd
commit
857986e2c0
|
@ -17,7 +17,7 @@ class ComposerMessagesFinder
|
|||
|
||||
# Determines whether to show the user education text
|
||||
def check_education_message
|
||||
return '' if @topic && @topic.archetype == Archetype.private_message
|
||||
return if @topic && @topic.archetype == Archetype.private_message
|
||||
|
||||
if creating_topic?
|
||||
count = @user.created_topic_count
|
||||
|
@ -37,7 +37,7 @@ class ComposerMessagesFinder
|
|||
}
|
||||
end
|
||||
|
||||
''
|
||||
nil
|
||||
end
|
||||
|
||||
# New users have a limited number of replies in a topic
|
||||
|
|
Loading…
Reference in New Issue
Block a user