not going through user.post
This commit is contained in:
parent
9db4838543
commit
385472351d
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue