diff --git a/app/models/photo.rb b/app/models/photo.rb index a3143ae86..e57e2f78d 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -23,6 +23,7 @@ class Photo < Post photo = Photo.new(params) photo.image.store! image_file photo.save + photo end after_save :log_save_inspection diff --git a/gpg/diaspora-test/trustdb.gpg b/gpg/diaspora-test/trustdb.gpg index 1a5e3988f..5bbf2835a 100644 Binary files a/gpg/diaspora-test/trustdb.gpg and b/gpg/diaspora-test/trustdb.gpg differ diff --git a/spec/models/photo_spec.rb b/spec/models/photo_spec.rb index dceed3a78..3920d83b2 100644 --- a/spec/models/photo_spec.rb +++ b/spec/models/photo_spec.rb @@ -59,7 +59,7 @@ describe Photo do @photo.image.store! File.open(@fixture_name) puts @photo.image.url(:thumb_medium) @photo.image.url.include?(@fixture_filename).should be false - @photo.image.url(:thumb_medium).include?(@fixture_filename).should be false + @photo.image.url(:thumb_medium).include?("/" + @fixture_filename).should be false end describe 'non-image files' do