OSDN Git Service

fix: sync error
[pettanr/pettanr.git] / app / models / original_picture.rb
index baddcda..f4f4058 100644 (file)
@@ -64,7 +64,7 @@ class OriginalPicture < Peta::Content
   end
   
   def revision
-    head = self.history.first
+    head = self.class.find_history(self.id).first
     head ? head.revision : 'unpublished'
   end