个人主页

This commit is contained in:
yutao 2015-07-18 15:58:33 +08:00
parent 63f44535a3
commit 55f57ef8b7
1 changed files with 5 additions and 1 deletions

View File

@ -434,6 +434,8 @@ module UsersHelper
def get_activity_act_showname_htmlclear(activity) def get_activity_act_showname_htmlclear(activity)
str = get_activity_act_showname(activity) str = get_activity_act_showname(activity)
str = str.gsub(/<.*>/,'') str = str.gsub(/<.*>/,'')
str = str.gsub(/\r/,'')
str = str.gsub(/\n/,'')
str = str.lstrip.rstrip str = str.lstrip.rstrip
if str == '' if str == ''
str = 'RE:' str = 'RE:'
@ -449,7 +451,9 @@ module UsersHelper
when "Journal" when "Journal"
arr = details_to_strings(activity.act.details,true) arr = details_to_strings(activity.act.details,true)
arr << activity.act.notes arr << activity.act.notes
return arr.to_s str = ''
arr.each { |item| str = str+item }
return str
when "JournalsForMessage" when "JournalsForMessage"
return activity.act.notes return activity.act.notes
when "Message" when "Message"