better response handling
This commit is contained in:
parent
608077cd22
commit
fcf1a802ff
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ namespace BirdsiteLive.Pipeline.Processors.SubTasks
|
||||||
var note = _statusService.GetStatus(user.Acct, tweet);
|
var note = _statusService.GetStatus(user.Acct, tweet);
|
||||||
var result = await _activityPubService.PostNewNoteActivity(note, user.Acct, tweet.Id.ToString(), follower.Host, inbox);
|
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;
|
syncStatus = tweet.Id;
|
||||||
else
|
else
|
||||||
throw new Exception("Posting new note activity failed");
|
throw new Exception("Posting new note activity failed");
|
||||||
|
|
Loading…
Add table
Reference in a new issue