fix: preserve pending support state on private profiles
Deploy olons-server production / deploy (push) Successful in 2m42s
Deploy olons-server production / deploy (push) Successful in 2m42s
This commit is contained in:
@@ -388,6 +388,12 @@ func IsConflict(err error) bool {
|
||||
return errors.As(err, &target) && target.Status == http.StatusConflict
|
||||
}
|
||||
|
||||
func IsFriendRequestConflict(err error) bool {
|
||||
var target *Error
|
||||
return errors.As(err, &target) && target.Status == http.StatusConflict &&
|
||||
strings.EqualFold(strings.TrimSpace(target.Reason), "FRIEND_REQUEST_CONFLICT")
|
||||
}
|
||||
|
||||
func IsPermissionDenied(err error) bool {
|
||||
var target *Error
|
||||
return errors.As(err, &target) && target.Status == http.StatusForbidden
|
||||
|
||||
Reference in New Issue
Block a user