not going through user.post

This commit is contained in:
ilya 2010-08-24 16:25:12 -07:00
parent 9db4838543
commit 385472351d

View file

@ -58,7 +58,9 @@ def warzombie
def set_profile_photo
render :nothing => true
album = current_user.post( :album, :to => current_user.all_group_ids, :name => "Profile Photos")
album = Album.create(:person => current_user.person, :name => "Profile Photos")
current_user.raw_visible_posts << album
current_user.save
backer_number = YAML.load_file(Rails.root.join('config','backer_number.yml'))[:seed_number].to_i
username = backer_info[backer_number]['username'].gsub(/ /,'').downcase