### Steps to reproduce the problem
1.Build the instance normally, and pay atten…tion to other instance users.
2.After the instance has been running for a period of time, delete the instance database and rerun the instance settings, save.
3.Follow other instance users again (before), prompt "Following verification", there is 401 in the log
4.You can follow other users normally by setting up a new domain name.
...
### Expected behaviour
After the database is reset, you can follow other instances with the old domain name
### Actual behaviour
A new domain name is required to follow other instance users.
### Specifications
```
mastodon-web-1 | [aca8029b-4915-4e6e-a472-66d455ff65d4] method=GET path=/users/aaron format=json controller=AccountsController action=show status=200 duration=21.75 view=7.06 db=3.83 key=https://mast.dragon-fly.club/actor#main-key
mastodon-sidekiq-1 | 2022-10-10T13:33:32.215Z pid=6 tid=2l3a class=ActivityPub::DeliveryWorker jid=eaf29bdee99699c056899f0d elapsed=1.502 INFO: fail
mastodon-sidekiq-1 | 2022-10-10T13:33:32.215Z pid=6 tid=2l3a WARN: {"context":"Job raised exception","job":{"retry":16,"queue":"push","dead":false,"args":["{\"@context\":\"https://www.w3.org/ns/activitystreams\",\"id\":\"https://me.its2.fun/e027e951-0f83-4bbe-8b8e-001404a014d8\",\"type\":\"Follow\",\"actor\":\"https://me.its2.fun/users/aaron\",\"object\":\"https://mast.dragon-fly.club/users/SaBunnKi\"}",109138910118564175,"https://mast.dragon-fly.club/users/SaBunnKi/inbox"],"class":"ActivityPub::DeliveryWorker","jid":"eaf29bdee99699c056899f0d","created_at":1665408810.7118962,"enqueued_at":1665408810.7123432},"jobstr":"{\"retry\":16,\"queue\":\"push\",\"dead\":false,\"args\":[\"{\\\"@context\\\":\\\"https://www.w3.org/ns/activitystreams\\\",\\\"id\\\":\\\"https://me.its2.fun/e027e951-0f83-4bbe-8b8e-001404a014d8\\\",\\\"type\\\":\\\"Follow\\\",\\\"actor\\\":\\\"https://me.its2.fun/users/aaron\\\",\\\"object\\\":\\\"https://mast.dragon-fly.club/users/SaBunnKi\\\"}\",109138910118564175,\"https://mast.dragon-fly.club/users/SaBunnKi/inbox\"],\"class\":\"ActivityPub::DeliveryWorker\",\"jid\":\"eaf29bdee99699c056899f0d\",\"created_at\":1665408810.7118962,\"enqueued_at\":1665408810.7123432}"}
mastodon-sidekiq-1 | 2022-10-10T13:33:32.215Z pid=6 tid=2l3a WARN: Mastodon::UnexpectedResponseError: https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401
mastodon-sidekiq-1 | 2022-10-10T13:33:32.215Z pid=6 tid=2l3a WARN: /opt/mastodon/app/workers/activitypub/delivery_worker.rb:54:in `block (3 levels) in perform_request'
mastodon-sidekiq-1 | /opt/mastodon/app/lib/request.rb:75:in `perform'
mastodon-sidekiq-1 | /opt/mastodon/app/workers/activitypub/delivery_worker.rb:53:in `block (2 levels) in perform_request'
mastodon-web-1 | [7fb1aa07-d178-442e-8157-27ac6d95e511] method=HEAD path=/health format=*/* controller=HealthController action=show status=200 duration=0.41 view=0.21 db=0.00
mastodon-sidekiq-1 | 2022-10-10T13:33:51.231Z pid=6 tid=2l6y INFO: queueing Scheduler::AccountsStatusesCleanupScheduler (accounts_statuses_cleanup_scheduler)
mastodon-sidekiq-1 | 2022-10-10T13:33:51.234Z pid=6 tid=2lee class=Scheduler::AccountsStatusesCleanupScheduler jid=8c837fe7df8e8e00b36b2b6a INFO: start
mastodon-sidekiq-1 | 2022-10-10T13:33:51.240Z pid=6 tid=2lee class=Scheduler::AccountsStatusesCleanupScheduler jid=8c837fe7df8e8e00b36b2b6a elapsed=0.006 INFO: done
mastodon-web-1 | [0f254636-bbab-4f4b-8dcf-f3d697c0f89a] method=GET path=/api/v1/timelines/home format=html controller=Api::V1::Timelines::HomeController action=show status=200 duration=6.80 view=0.44 db=1.34
mastodon-web-1 | [320772b6-e218-47f9-a646-8f05518e06b0] method=GET path=/api/v1/notifications format=html controller=Api::V1::NotificationsController action=index status=200 duration=9.28 view=0.39 db=2.91
mastodon-web-1 | [3b7f48d4-9023-4898-b084-94bd0a2fbf12] method=GET path=/api/v1/announcements format=html controller=Api::V1::AnnouncementsController action=index status=200 duration=7.11 view=0.93 db=2.80
mastodon-sidekiq-1 | 2022-10-10T13:33:58.263Z pid=6 tid=2lfi class=ActivityPub::DeliveryWorker jid=eaf29bdee99699c056899f0d INFO: start
mastodon-sidekiq-1 | 2022-10-10T13:33:58.827Z pid=6 tid=2lfi class=ActivityPub::DeliveryWorker jid=eaf29bdee99699c056899f0d elapsed=0.564 INFO: fail
mastodon-sidekiq-1 | 2022-10-10T13:33:58.827Z pid=6 tid=2lfi WARN: {"context":"Job raised exception","job":{"retry":16,"queue":"push","dead":false,"args":["{\"@context\":\"https://www.w3.org/ns/activitystreams\",\"id\":\"https://me.its2.fun/e027e951-0f83-4bbe-8b8e-001404a014d8\",\"type\":\"Follow\",\"actor\":\"https://me.its2.fun/users/aaron\",\"object\":\"https://mast.dragon-fly.club/users/SaBunnKi\"}",109138910118564175,"https://mast.dragon-fly.club/users/SaBunnKi/inbox"],"class":"ActivityPub::DeliveryWorker","jid":"eaf29bdee99699c056899f0d","created_at":1665408810.7118962,"enqueued_at":1665408838.2630787,"error_message":"https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401","error_class":"Mastodon::UnexpectedResponseError","failed_at":1665408812.2148535,"retry_count":0},"jobstr":"{\"retry\":16,\"queue\":\"push\",\"dead\":false,\"args\":[\"{\\\"@context\\\":\\\"https://www.w3.org/ns/activitystreams\\\",\\\"id\\\":\\\"https://me.its2.fun/e027e951-0f83-4bbe-8b8e-001404a014d8\\\",\\\"type\\\":\\\"Follow\\\",\\\"actor\\\":\\\"https://me.its2.fun/users/aaron\\\",\\\"object\\\":\\\"https://mast.dragon-fly.club/users/SaBunnKi\\\"}\",109138910118564175,\"https://mast.dragon-fly.club/users/SaBunnKi/inbox\"],\"class\":\"ActivityPub::DeliveryWorker\",\"jid\":\"eaf29bdee99699c056899f0d\",\"created_at\":1665408810.7118962,\"enqueued_at\":1665408838.2630787,\"error_message\":\"https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401\",\"error_class\":\"Mastodon::UnexpectedResponseError\",\"failed_at\":1665408812.2148535,\"retry_count\":0}"}
mastodon-sidekiq-1 | 2022-10-10T13:33:58.827Z pid=6 tid=2lfi WARN: Mastodon::UnexpectedResponseError: https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401
mastodon-sidekiq-1 | 2022-10-10T13:33:58.827Z pid=6 tid=2lfi WARN: /opt/mastodon/app/workers/activitypub/delivery_worker.rb:54:in `block (3 levels) in perform_request'
mastodon-sidekiq-1 | /opt/mastodon/app/lib/request.rb:75:in `perform'
mastodon-sidekiq-1 | /opt/mastodon/app/workers/activitypub/delivery_worker.rb:53:in `block (2 levels) in perform_request'
mastodon-web-1 | [6de735ef-8caf-43df-b110-d258d34b814f] method=POST path=/inbox format=html controller=ActivityPub::InboxesController action=create status=202 duration=7.69 view=0.00 db=0.59 key=https://pawoo.net/users/Princess108#main-key
mastodon-web-1 | [b9b4bd2a-4542-4383-96e4-51df5daf4391] method=HEAD path=/health format=*/* controller=HealthController action=show status=200 duration=0.50 view=0.28 db=0.00
mastodon-web-1 | [18de3a7c-35e0-406b-a167-9ba0409f6a5b] method=GET path=/api/v1/timelines/home format=html controller=Api::V1::Timelines::HomeController action=show status=200 duration=6.81 view=0.42 db=1.32
mastodon-web-1 | [304b6e19-e5ba-40b6-9b11-205ddca9f23e] method=GET path=/api/v1/notifications format=html controller=Api::V1::NotificationsController action=index status=200 duration=8.43 view=0.40 db=2.15
mastodon-web-1 | [79ae2557-9f63-423b-9f43-ba3dc409a426] method=GET path=/api/v1/announcements format=html controller=Api::V1::AnnouncementsController action=index status=200 duration=5.91 view=0.92 db=1.85
mastodon-sidekiq-1 | 2022-10-10T13:34:25.691Z pid=6 tid=2kz6 class=ActivityPub::DeliveryWorker jid=eaf29bdee99699c056899f0d INFO: start
mastodon-sidekiq-1 | 2022-10-10T13:34:26.294Z pid=6 tid=2kz6 class=ActivityPub::DeliveryWorker jid=eaf29bdee99699c056899f0d elapsed=0.602 INFO: fail
mastodon-sidekiq-1 | 2022-10-10T13:34:26.294Z pid=6 tid=2kz6 WARN: {"context":"Job raised exception","job":{"retry":16,"queue":"push","dead":false,"args":["{\"@context\":\"https://www.w3.org/ns/activitystreams\",\"id\":\"https://me.its2.fun/e027e951-0f83-4bbe-8b8e-001404a014d8\",\"type\":\"Follow\",\"actor\":\"https://me.its2.fun/users/aaron\",\"object\":\"https://mast.dragon-fly.club/users/SaBunnKi\"}",109138910118564175,"https://mast.dragon-fly.club/users/SaBunnKi/inbox"],"class":"ActivityPub::DeliveryWorker","jid":"eaf29bdee99699c056899f0d","created_at":1665408810.7118962,"enqueued_at":1665408865.6913939,"error_message":"https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401","error_class":"Mastodon::UnexpectedResponseError","failed_at":1665408812.2148535,"retry_count":1,"retried_at":1665408838.826508},"jobstr":"{\"retry\":16,\"queue\":\"push\",\"dead\":false,\"args\":[\"{\\\"@context\\\":\\\"https://www.w3.org/ns/activitystreams\\\",\\\"id\\\":\\\"https://me.its2.fun/e027e951-0f83-4bbe-8b8e-001404a014d8\\\",\\\"type\\\":\\\"Follow\\\",\\\"actor\\\":\\\"https://me.its2.fun/users/aaron\\\",\\\"object\\\":\\\"https://mast.dragon-fly.club/users/SaBunnKi\\\"}\",109138910118564175,\"https://mast.dragon-fly.club/users/SaBunnKi/inbox\"],\"class\":\"ActivityPub::DeliveryWorker\",\"jid\":\"eaf29bdee99699c056899f0d\",\"created_at\":1665408810.7118962,\"enqueued_at\":1665408865.6913939,\"error_message\":\"https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401\",\"error_class\":\"Mastodon::UnexpectedResponseError\",\"failed_at\":1665408812.2148535,\"retry_count\":1,\"retried_at\":1665408838.826508}"}
mastodon-sidekiq-1 | 2022-10-10T13:34:26.294Z pid=6 tid=2kz6 WARN: Mastodon::UnexpectedResponseError: https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401
mastodon-sidekiq-1 | 2022-10-10T13:34:26.294Z pid=6 tid=2kz6 WARN: /opt/mastodon/app/workers/activitypub/delivery_worker.rb:54:in `block (3 levels) in perform_request'
mastodon-sidekiq-1 | /opt/mastodon/app/lib/request.rb:75:in `perform'
mastodon-sidekiq-1 | /opt/mastodon/app/workers/activitypub/delivery_worker.rb:53:in `block (2 levels) in perform_request'
mastodon-web-1 | [c30a743b-dc63-44b0-82a4-2aa54b0d06b4] method=HEAD path=/health format=*/* controller=HealthController action=show status=200 duration=0.42 view=0.21 db=0.00
mastodon-sidekiq-1 | 2022-10-10T13:34:51.284Z pid=6 tid=2l6y INFO: queueing Scheduler::AccountsStatusesCleanupScheduler (accounts_statuses_cleanup_scheduler)
mastodon-sidekiq-1 | 2022-10-10T13:34:51.286Z pid=6 tid=2lee class=Scheduler::AccountsStatusesCleanupScheduler jid=68d27e8b997bdf15fa2c725e INFO: start
mastodon-sidekiq-1 | 2022-10-10T13:34:51.292Z pid=6 tid=2lee class=Scheduler::AccountsStatusesCleanupScheduler jid=68d27e8b997bdf15fa2c725e elapsed=0.006 INFO: done
mastodon-web-1 | [e94c3280-2677-4deb-b325-5efa126f4255] method=GET path=/api/v1/timelines/home format=html controller=Api::V1::Timelines::HomeController action=show status=200 duration=6.46 view=0.49 db=1.23
mastodon-web-1 | [0a5ce7f3-30eb-41cd-9a42-04fe0b3898f6] method=GET path=/api/v1/notifications format=html controller=Api::V1::NotificationsController action=index status=200 duration=8.60 view=0.43 db=2.31
mastodon-web-1 | [0a3c765e-0646-40da-8675-f72180a64243] method=GET path=/api/v1/announcements format=html controller=Api::V1::AnnouncementsController action=index status=200 duration=5.98 view=0.81 db=1.93
mastodon-sidekiq-1 | 2022-10-10T13:35:10.392Z pid=6 tid=2ljy class=ActivityPub::DeliveryWorker jid=eaf29bdee99699c056899f0d INFO: start
mastodon-sidekiq-1 | 2022-10-10T13:35:10.993Z pid=6 tid=2ljy class=ActivityPub::DeliveryWorker jid=eaf29bdee99699c056899f0d elapsed=0.601 INFO: fail
mastodon-sidekiq-1 | 2022-10-10T13:35:10.994Z pid=6 tid=2ljy WARN: {"context":"Job raised exception","job":{"retry":16,"queue":"push","dead":false,"args":["{\"@context\":\"https://www.w3.org/ns/activitystreams\",\"id\":\"https://me.its2.fun/e027e951-0f83-4bbe-8b8e-001404a014d8\",\"type\":\"Follow\",\"actor\":\"https://me.its2.fun/users/aaron\",\"object\":\"https://mast.dragon-fly.club/users/SaBunnKi\"}",109138910118564175,"https://mast.dragon-fly.club/users/SaBunnKi/inbox"],"class":"ActivityPub::DeliveryWorker","jid":"eaf29bdee99699c056899f0d","created_at":1665408810.7118962,"enqueued_at":1665408910.3922791,"error_message":"https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401","error_class":"Mastodon::UnexpectedResponseError","failed_at":1665408812.2148535,"retry_count":2,"retried_at":1665408866.2933004},"jobstr":"{\"retry\":16,\"queue\":\"push\",\"dead\":false,\"args\":[\"{\\\"@context\\\":\\\"https://www.w3.org/ns/activitystreams\\\",\\\"id\\\":\\\"https://me.its2.fun/e027e951-0f83-4bbe-8b8e-001404a014d8\\\",\\\"type\\\":\\\"Follow\\\",\\\"actor\\\":\\\"https://me.its2.fun/users/aaron\\\",\\\"object\\\":\\\"https://mast.dragon-fly.club/users/SaBunnKi\\\"}\",109138910118564175,\"https://mast.dragon-fly.club/users/SaBunnKi/inbox\"],\"class\":\"ActivityPub::DeliveryWorker\",\"jid\":\"eaf29bdee99699c056899f0d\",\"created_at\":1665408810.7118962,\"enqueued_at\":1665408910.3922791,\"error_message\":\"https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401\",\"error_class\":\"Mastodon::UnexpectedResponseError\",\"failed_at\":1665408812.2148535,\"retry_count\":2,\"retried_at\":1665408866.2933004}"}
mastodon-sidekiq-1 | 2022-10-10T13:35:10.994Z pid=6 tid=2ljy WARN: Mastodon::UnexpectedResponseError: https://mast.dragon-fly.club/users/SaBunnKi/inbox returned code 401
mastodon-sidekiq-1 | 2022-10-10T13:35:10.994Z pid=6 tid=2ljy WARN: /opt/mastodon/app/workers/activitypub/delivery_worker.rb:54:in `block (3 levels) in perform_request'
mastodon-sidekiq-1 | /opt/mastodon/app/lib/request.rb:75:in `perform'
mastodon-sidekiq-1 | /opt/mastodon/app/workers/activitypub/delivery_worker.rb:53:in `block (2 levels) in perform_request'
mastodon-web-1 | [1cc5bf60-9dc1-4474-96f4-7a612fc0ed53] method=HEAD path=/health format=*/* controller=HealthController action=show status=200 duration=0.42 view=0.21 db=0.00
mastodon-web-1 | [8c48f275-1451-413b-b127-30062dc340ee] method=GET path=/api/v1/timelines/home format=html controller=Api::V1::Timelines::HomeController action=show status=200 duration=6.58 view=0.47 db=1.36
mastodon-web-1 | [925233f8-9f71-4bd7-9551-39022b72525e] method=GET path=/api/v1/notifications format=html controller=Api::V1::NotificationsController action=index status=200 duration=8.16 view=0.38 db=2.15
mastodon-web-1 | [cb01720a-447c-434c-b5ac-a656632dd94c] method=GET path=/api/v1/announcements format=html controller=Api::V1::AnnouncementsController action=index status=200 duration=6.61 view=0.84 db=2.37
mastodon-web-1 | [73032569-40ba-4c48-90da-d62f5b31e696] method=HEAD path=/health format=*/* controller=HealthController action=show status=200 duration=0.40 view=0.20 db=0.00
```