diff --git a/files/classes/comment.py b/files/classes/comment.py index 4ef281954..49c0e953e 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -224,12 +224,12 @@ class Comment(Base): @property @lazy def shortlink(self): - return f"{SITE_FULL}/comment/{self.id}#context" + return f"{self.post.permalink}/{self.id}#context" @property @lazy def sl(self): - return f"/comment/{self.id}?context=8#context" + return f"{self.post.shortlink}/{self.id}?context=8#context" @property @lazy diff --git a/files/templates/comments.html b/files/templates/comments.html index 63d7d8ed2..5d12c9477 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -466,7 +466,7 @@ Context - + {% if v %} @@ -664,7 +664,7 @@ Context - Copy link + Copy link {% if v %} Report diff --git a/files/templates/header.html b/files/templates/header.html index daa3ce9c3..e28b10e85 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -22,7 +22,7 @@ {% if SITE_NAME == 'Drama' %}
If you have any questions about this Privacy Policy, You can contact us:
By email: drama@{{SITE}}
+By email: drama@{{request.host}}
By visiting this page on our website: {{SITE_FULL}}/contact
diff --git a/files/templates/sidebar_Drama.html b/files/templates/sidebar_Drama.html index 3ec52b415..6a131b8f9 100644 --- a/files/templates/sidebar_Drama.html +++ b/files/templates/sidebar_Drama.html @@ -37,7 +37,7 @@Do your part to keep our community healthy by blowing everything out of proportion and making literally everything as dramatic as possible.
-{{SITE}} caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyondâ„¢. There isn't drama we won't touch, and we want it all.
+{{request.host}} caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyondâ„¢. There isn't drama we won't touch, and we want it all.
What we want diff --git a/files/templates/submission.html b/files/templates/submission.html index 77103d6dd..314dc9f27 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -547,7 +547,7 @@