catch an exception
This commit is contained in:
parent
160ef97626
commit
37725dfd9c
1 changed files with 10 additions and 3 deletions
|
@ -196,9 +196,16 @@ namespace BirdsiteLive.Domain
|
||||||
apObject = activity.apObject
|
apObject = activity.apObject
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var result = await _activityPubService.PostDataAsync(acceptFollow, followerHost, activity.apObject);
|
try
|
||||||
return result == HttpStatusCode.Accepted ||
|
{
|
||||||
result == HttpStatusCode.OK; //TODO: revamp this for better error handling
|
var result = await _activityPubService.PostDataAsync(acceptFollow, followerHost, activity.apObject);
|
||||||
|
return result == HttpStatusCode.Accepted ||
|
||||||
|
result == HttpStatusCode.OK;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<bool> SendRejectFollowAsync(ActivityFollow activity, string followerHost)
|
public async Task<bool> SendRejectFollowAsync(ActivityFollow activity, string followerHost)
|
||||||
|
|
Loading…
Add table
Reference in a new issue