Adding a test for ReblogService, fixing mentions for remote statuses
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
class Mention < ActiveRecord::Base
|
||||
belongs_to :account, inverse_of: :mentions
|
||||
belongs_to :status, inverse_of: :mentions
|
||||
belongs_to :status
|
||||
|
||||
validates :account, :status, presence: true
|
||||
validates :account, uniqueness: { scope: :status }
|
||||
|
Reference in New Issue
Block a user