From efb334ebc41edaa0bb0cdbdfe57d42e63cce5422 Mon Sep 17 00:00:00 2001
From: Matthieu Fesselier <matthieu.fesselier@gmail.com>
Date: Thu, 21 Feb 2019 09:06:37 +0700
Subject: [PATCH] Add host from settings

---
 djangoldp_notification/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py
index d9dc277..78fe21c 100644
--- a/djangoldp_notification/models.py
+++ b/djangoldp_notification/models.py
@@ -46,7 +46,7 @@ class Subscription(models.Model):
 def send_notification(sender, instance, **kwargs):
     if (sender != Notification and sender != LogEntry):
         threads = []
-        url = "http://127.0.0.1:8000" + Model.get_absolute_url(instance) + '/'  # TODO : get host
+        url = settings.BASE_URL + Model.get_absolute_url(instance) + '/'
         for subscription in Subscription.objects.filter(object=url):
             process = Thread(target=send_request, args=[subscription.inbox, url])
             process.start()