mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 22:21:55 +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
|
# Determines whether to show the user education text
|
||||||
def check_education_message
|
def check_education_message
|
||||||
return '' if @topic && @topic.archetype == Archetype.private_message
|
return if @topic && @topic.archetype == Archetype.private_message
|
||||||
|
|
||||||
if creating_topic?
|
if creating_topic?
|
||||||
count = @user.created_topic_count
|
count = @user.created_topic_count
|
||||||
|
@ -37,7 +37,7 @@ class ComposerMessagesFinder
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
''
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
# New users have a limited number of replies in a topic
|
# New users have a limited number of replies in a topic
|
||||||
|
|
Loading…
Reference in New Issue
Block a user