mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
7 lines
164 B
Ruby
7 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
|