diff --git a/src/Network/API/Requests/OWSGetProfileRequest.m b/src/Network/API/Requests/OWSGetProfileRequest.m index 8def49234..923fe4b5e 100644 --- a/src/Network/API/Requests/OWSGetProfileRequest.m +++ b/src/Network/API/Requests/OWSGetProfileRequest.m @@ -3,18 +3,17 @@ // #import "OWSGetProfileRequest.h" +#import "TSConstants.h" NS_ASSUME_NONNULL_BEGIN -NSString *const OWSProfileRequestPathFormat = @"v1/profile/%@"; - @implementation OWSGetProfileRequest - (instancetype)initWithRecipientId:(NSString *)recipientId { OWSAssert(recipientId.length > 0); - NSString *path =[NSString stringWithFormat:OWSProfileRequestPathFormat, recipientId]; + NSString *path = [NSString stringWithFormat:textSecureProfileAPIFormat, recipientId]; self = [super initWithURL:[NSURL URLWithString:path]]; if (!self) { return self; diff --git a/src/TSConstants.h b/src/TSConstants.h index 33669234d..d7702ca1d 100644 --- a/src/TSConstants.h +++ b/src/TSConstants.h @@ -1,5 +1,6 @@ -// Created by Frederic Jacobs on 28/10/14. -// Copyright (c) 2014 Open Whisper Systems. All rights reserved. +// +// Copyright (c) 2017 Open Whisper Systems. All rights reserved. +// #import @class TSNumberVerifier; @@ -39,6 +40,7 @@ typedef enum { kSMSVerification, kPhoneNumberVerification } VerificationTranspor #define textSecureDeviceProvisioningCodeAPI @"v1/devices/provisioning/code" #define textSecureDeviceProvisioningAPIFormat @"v1/provisioning/%@" #define textSecureDevicesAPIFormat @"v1/devices/%@" +#define textSecureProfileAPIFormat @"v1/profile/%@" #pragma mark Push RegistrationSpecific Constants typedef NS_ENUM(NSInteger, TSPushRegistrationError) {