Commit f4ff48f5 authored by maxwell's avatar maxwell

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

parent c7ac9053
......@@ -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
......
......@@ -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
......
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