]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #16603 (#16605)
authorHolger <holgerhuo@outlook.com>
Fri, 20 Aug 2021 06:39:37 +0000 (14:39 +0800)
committerGitHub <noreply@github.com>
Fri, 20 Aug 2021 06:39:37 +0000 (07:39 +0100)
Fix issue #16603 undefined method `serialize_payload' for Unsuspend Account Service error.
It seems that this service forgot to `include Payloadable` so that `serialize_payload` could not be found in this service.

app/services/unsuspend_account_service.rb

index 949c670aac84c09d8a83f748a655cdc6df5760d0..b383f126a7310de8e4297dd6ae6d1d4d67cabe53 100644 (file)
@@ -1,6 +1,7 @@
 # frozen_string_literal: true
 
 class UnsuspendAccountService < BaseService
+  include Payloadable
   def call(account)
     @account = account