mirror of
https://github.com/whippyshou/mastodon
synced 2024-11-24 15:16:26 +09:00
Add webhook account.approved
(#22938)
* Webhook `account.approved` when preparing new user * Update Webhook.EVENTS
This commit is contained in:
parent
17f79082b0
commit
8eb29741b4
@ -489,6 +489,7 @@ class User < ApplicationRecord
|
|||||||
BootstrapTimelineWorker.perform_async(account_id)
|
BootstrapTimelineWorker.perform_async(account_id)
|
||||||
ActivityTracker.increment('activity:accounts:local')
|
ActivityTracker.increment('activity:accounts:local')
|
||||||
UserMailer.welcome(self).deliver_later
|
UserMailer.welcome(self).deliver_later
|
||||||
|
TriggerWebhookWorker.perform_async('account.approved', 'Account', account_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def prepare_returning_user!
|
def prepare_returning_user!
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
class Webhook < ApplicationRecord
|
class Webhook < ApplicationRecord
|
||||||
EVENTS = %w(
|
EVENTS = %w(
|
||||||
|
account.approved
|
||||||
account.created
|
account.created
|
||||||
report.created
|
report.created
|
||||||
).freeze
|
).freeze
|
||||||
|
Loading…
Reference in New Issue
Block a user