app/controllers/muck/activities_controller.rb in muck-activities-0.1.13 vs app/controllers/muck/activities_controller.rb in muck-activities-0.1.14
- old
+ new
@@ -20,10 +20,10 @@
end
def create
@activity = @parent.activities.build(params[:activity])
@activity.source = @parent
- @activity.content.gsub!(@parent.display_name, '')
+ @activity.content.gsub!(@parent.display_name, '') if @activity.template == 'status_update'
@parent.save!
@activity_html = get_activity_html(@activity)
if @activity.template == 'status_update'
@status_html = get_status_html(@parent)
else
\ No newline at end of file