Use topic_name() in update_message_backend().

This commit is contained in:
Steve Howell
2016-07-16 09:01:25 -07:00
committed by Tim Abbott
parent 4519efa266
commit 2bfa763c0b

View File

@@ -824,7 +824,7 @@ def update_message_backend(request, user_profile,
# 3. This is a topic-only edit and you are an admin.
if message.sender == user_profile:
pass
elif (content is None) and ((message.subject == "(no topic)") or
elif (content is None) and ((message.topic_name() == "(no topic)") or
user_profile.is_realm_admin):
pass
else: