diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-01 13:21:48 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-01 13:21:48 +0200 |
commit | 595c8dda60746e171dbbb905b355561334e2a5c8 (patch) | |
tree | 92ed382b5c84f31534b081312ffc8d21f5f30074 /app/models/favourite.rb | |
parent | c2a4d702652c27feeda9eda4c00c78325584af6c (diff) |
Favouriting works, reblogging is a little broken because of <Status>
Diffstat (limited to 'app/models/favourite.rb')
-rw-r--r-- | app/models/favourite.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/favourite.rb b/app/models/favourite.rb index 6032e539c..e248ae561 100644 --- a/app/models/favourite.rb +++ b/app/models/favourite.rb @@ -4,6 +4,8 @@ class Favourite < ApplicationRecord belongs_to :account, inverse_of: :favourites belongs_to :status, inverse_of: :favourites + validates :status_id, uniqueness: { scope: :account_id } + def verb :favorite end |