commenting out mobile for now. photos now post from only a users photos

This commit is contained in:
maxwell 2010-11-22 10:26:00 -08:00
parent c7ac90538a
commit f4ff48f5c0
2 changed files with 3 additions and 3 deletions

View file

@ -3,10 +3,10 @@
# the COPYRIGHT file.
class ApplicationController < ActionController::Base
has_mobile_fu
#has_mobile_fu
protect_from_forgery :except => :receive
before_filter :mobile_except_ipad
# =>before_filter :mobile_except_ipad
before_filter :set_contacts_and_status, :except => [:create, :update]
before_filter :count_requests
before_filter :set_invites

View file

@ -9,7 +9,7 @@ class StatusMessagesController < ApplicationController
respond_to :json, :only => :show
def create
photos = Photo.all(:id.in => [*params[:photos]])
photos = Photo.all(:id.in => [*params[:photos]], :diaspora_handle => current_user.person.diaspora_handle)
public_flag = params[:status_message][:public]
public_flag.to_s.match(/(true)/) ? public_flag = true : public_flag = false