From fcf1a802ff75ab9bb534c26afd07133b2387f837 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sat, 9 Jan 2021 14:12:51 -0500 Subject: [PATCH] better response handling --- .../Processors/SubTasks/SendTweetsToInboxTask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToInboxTask.cs b/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToInboxTask.cs index eb1fb36..77644cf 100644 --- a/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToInboxTask.cs +++ b/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToInboxTask.cs @@ -49,7 +49,7 @@ namespace BirdsiteLive.Pipeline.Processors.SubTasks var note = _statusService.GetStatus(user.Acct, tweet); var result = await _activityPubService.PostNewNoteActivity(note, user.Acct, tweet.Id.ToString(), follower.Host, inbox); - if (result == HttpStatusCode.Accepted) + if (result == HttpStatusCode.Accepted || result == HttpStatusCode.OK) syncStatus = tweet.Id; else throw new Exception("Posting new note activity failed");