correct url linked in push notification

This commit is contained in:
Sam 2016-08-26 13:45:56 +10:00
parent ca79c4b276
commit 896732975e

View File

@ -2,7 +2,7 @@ module Jobs
class PushNotification < Jobs::Base
def execute(args)
notification = args["payload"]
notification["url"] = UrlHelper.absolute(notification["post_url"])
notification["url"] = UrlHelper.absolute_without_cdn(notification["post_url"])
notification.delete("post_url")
payload = {