Ind.ie is now Small Technology Foundation.
Commit 9e5ce642 authored by Aral Balkan's avatar Aral Balkan

Fixed SSL support in Waystone events (friendship requests were failing). Related to #69.

parent 0ff2a8db
......@@ -68,7 +68,7 @@ public class TeleportationAPI:NSObject
if let userInfo = notification.userInfo, data: AnyObject = userInfo["data"], messageFileName = data["name"] as? String, messageRepository = data["repo"] as? String
{
// Make sure that the message is received from Waystone (not one that we are *sending* to waystone)
let waystonePrefix = ("\(ApplicationModel.sharedInstance.waystoneURL)-to-" as NSString).stringByReplacingOccurrencesOfString("http://", withString: "")
let waystonePrefix = ("\(ApplicationModel.sharedInstance.waystoneURL)-to-" as NSString).stringByReplacingOccurrencesOfString("http://", withString: "").stringByReplacingOccurrencesOfString("https://", withString: "")
println("Checking if it has prefix: >\(waystonePrefix)")
let isFromWaystone = messageRepository.hasPrefix(waystonePrefix)
if !isFromWaystone
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment