diff options
Diffstat (limited to 'app/controllers/status_messages_controller.rb')
-rw-r--r-- | app/controllers/status_messages_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/status_messages_controller.rb b/app/controllers/status_messages_controller.rb index fbe07f57d..6f9b084b6 100644 --- a/app/controllers/status_messages_controller.rb +++ b/app/controllers/status_messages_controller.rb @@ -50,10 +50,9 @@ class StatusMessagesController < ApplicationController aspects = current_user.aspects_from_ids(params[:aspect_ids]) current_user.add_to_streams(@status_message, aspects) - receiving_services = current_user.services.where( :type => params[:services].map{|s| "Services::"+s.titleize}) if params[:services] + receiving_services = current_user.services.where(:type => params[:services].map{|s| "Services::"+s.titleize}) if params[:services] current_user.dispatch_post(@status_message, :url => short_post_url(@status_message.guid), :services => receiving_services) - if request.env['HTTP_REFERER'].include?("people") # if this is a post coming from a profile page flash[:notice] = t('status_messages.create.success', :names => @status_message.mentions.includes(:person => :profile).map{ |mention| mention.person.name }.join(', ')) end |