mirror of
https://github.com/mastodon/mastodon.git
synced 2024-09-20 04:07:22 +00:00
8 lines
164 B
Ruby
8 lines
164 B
Ruby
class Status < ActiveRecord::Base
|
|
belongs_to :account, inverse_of: :statuses
|
|
|
|
after_create do
|
|
self.account.stream_entries.create!(activity: self)
|
|
end
|
|
end
|