Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
Raphael 2010-08-24 16:39:42 -07:00
commit 7861fe5abc
2 changed files with 6 additions and 1 deletions

View file

@ -58,7 +58,9 @@ def warzombie
def set_profile_photo
render :nothing => true
album = current_user.post(:album, :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

View file

@ -229,6 +229,9 @@ class User
self.person.save!
end
def all_group_ids
self.groups.all.collect{|x| x.id}
end
protected
def generate_key
OpenSSL::PKey::RSA::generate 1024