mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
better response handling
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user