2022-01-16 09:51:27 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-12-31 13:19:21 -08:00
|
|
|
class Relationships::Follow < Relationship
|
|
|
|
after_create do
|
|
|
|
Notification.notify target, self
|
|
|
|
end
|
|
|
|
|
|
|
|
before_destroy do
|
|
|
|
Notification.denotify target, self
|
|
|
|
end
|
|
|
|
|
|
|
|
def notification_type(*_args)
|
2022-07-20 12:43:50 -07:00
|
|
|
Notification::StartedFollowing
|
2021-12-31 13:19:21 -08:00
|
|
|
end
|
|
|
|
end
|