Follow requests send e-mail notifications, but are excluded from notifications API
Better initial state for unlisted/nsfw toggles
This commit is contained in:
parent
3689c119f0
commit
2146ac91a0
11 changed files with 48 additions and 12 deletions
|
@ -6,6 +6,8 @@ class FollowRequest < ApplicationRecord
|
|||
belongs_to :account
|
||||
belongs_to :target_account, class_name: 'Account'
|
||||
|
||||
has_one :notification, as: :activity, dependent: :destroy
|
||||
|
||||
validates :account, :target_account, presence: true
|
||||
validates :account_id, uniqueness: { scope: :target_account_id }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue