about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-16 21:14:39 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-16 21:14:39 +0100
commit086d4871451a0d609f539235e9b3da87279f5008 (patch)
tree082bc2778e4f708b3cd4dfc8c9872d062ca6ce58 /app/models
parent9cb690c70690bcebba69d3b66fb0b90e798d477d (diff)
Fix unfollows
Diffstat (limited to 'app/models')
-rw-r--r--app/models/favourite.rb2
-rw-r--r--app/models/follow.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/favourite.rb b/app/models/favourite.rb
index ad5380f43..20260f46b 100644
--- a/app/models/favourite.rb
+++ b/app/models/favourite.rb
@@ -2,7 +2,7 @@ class Favourite < ActiveRecord::Base
   belongs_to :account, inverse_of: :favourites
   belongs_to :status,  inverse_of: :favourites
 
-  has_one :stream_entry, as: :activity, dependent: :destroy
+  has_one :stream_entry, as: :activity
 
   def verb
     :favorite
diff --git a/app/models/follow.rb b/app/models/follow.rb
index 3521247e8..e458a07f3 100644
--- a/app/models/follow.rb
+++ b/app/models/follow.rb
@@ -2,7 +2,7 @@ class Follow < ActiveRecord::Base
   belongs_to :account
   belongs_to :target_account, class_name: 'Account'
 
-  has_one :stream_entry, as: :activity, dependent: :destroy
+  has_one :stream_entry, as: :activity
 
   validates :account, :target_account, presence: true
   validates :account_id, uniqueness: { scope: :target_account_id }