better response handling

This commit is contained in:
Nicolas Constant 2021-01-09 14:12:51 -05:00
parent 608077cd22
commit fcf1a802ff
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 1 deletions

View File

@ -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");