mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-21 16:33:48 +01:00
Make sure unresponsive split domain instances that come back to life don't get stuck isNotResponding
This commit is contained in:
parent
7ed43b76b5
commit
a1460503cf
@ -194,6 +194,27 @@ export default async (job: Bull.Job<InboxJobData>): Promise<string> => {
|
||||
federationChart.inbox(i.host);
|
||||
});
|
||||
|
||||
const inbox = authUser.user.sharedInbox ?? authUser.user.inbox;
|
||||
if (inbox !== null) {
|
||||
const { host: inboxHost } = new URL(inbox);
|
||||
|
||||
if (inboxHost !== authUser.user.host) {
|
||||
registerOrFetchInstanceDoc(inboxHost).then((i) => {
|
||||
Instances.update(i.id, {
|
||||
latestRequestReceivedAt: new Date(),
|
||||
lastCommunicatedAt: new Date(),
|
||||
isNotResponding: false,
|
||||
});
|
||||
|
||||
fetchInstanceMetadata(i);
|
||||
|
||||
instanceChart.requestReceived(i.host);
|
||||
apRequestChart.inbox();
|
||||
federationChart.inbox(i.host);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// アクティビティを処理
|
||||
await perform(authUser.user, activity);
|
||||
return "ok";
|
||||
|
Loading…
Reference in New Issue
Block a user