Commit ed10bea2 authored by Benjamin Neff's avatar Benjamin Neff Committed by Dennis Schubert

don't dispatch photos twice ...

parent c75f92d0
......@@ -73,11 +73,6 @@ class StatusMessagesController < ApplicationController
current_user.dispatch_post(@status_message, :url => short_post_url(@status_message.guid), :service_types => receiving_services)
#this is done implicitly, somewhere else, but it doesnt work, says max. :'( do |photo|
if coming_from_profile_page? && !own_profile_page? # if this is a post coming from a profile page
......@@ -116,6 +116,7 @@ class StatusMessage < Post
def update_and_dispatch_attached_photos(sender)
if "dispatch photos for StatusMessage:#{guid}"
Photo.where(status_message_guid: guid).update_all(:public => self.public) do |photo|
if photo.pending
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment