Made some progress
This commit is contained in:
8
app/models/follow.rb
Normal file
8
app/models/follow.rb
Normal file
@ -0,0 +1,8 @@
|
||||
class Follow < ActiveRecord::Base
|
||||
belongs_to :account
|
||||
belongs_to :target_account, class_name: 'Account'
|
||||
|
||||
after_create do
|
||||
self.account.stream_entries.create!(activity: self)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user