remotes/1693045480750635534/spooky-22
Aevann1 2021-11-21 14:32:49 +02:00
parent e99cc72a35
commit 4b256b649b
3 changed files with 4 additions and 4 deletions

View File

@ -209,7 +209,7 @@ class Comment(Base):
@property
@lazy
def shortlink(self):
return f"http://{site}/comment/{self.id}#context"
return f"/comment/{self.id}#context"
@property
@lazy

View File

@ -179,7 +179,7 @@ class Submission(Base):
@property
@lazy
def shortlink(self):
return f"http://{site}/post/{self.id}"
return f"/post/{self.id}"
@property
@lazy

View File

@ -541,7 +541,7 @@ def award_post(pid, v):
elif kind == "pizzashill":
if author.longpost: author.longpost += 86400
else: author.longpost = time.time() + 86400
send_notification(IDIO_ID, f"@{v.username} used {kind} award on {post.shortlink}")
send_notification(IDIO_ID, f"@{v.username} used {kind} award on {request.host_url}{post.shortlink}")
elif kind == "eye":
author.eye = True
send_notification(CARP_ID, f"@{v.username} used {kind} award!")
@ -675,7 +675,7 @@ def award_comment(cid, v):
elif kind == "pizzashill":
if author.longpost: author.longpost += 86400
else: author.longpost = time.time() + 86400
send_notification(IDIO_ID, f"@{v.username} used {kind} award on {c.shortlink}")
send_notification(IDIO_ID, f"@{v.username} used {kind} award on {request.host_url}{c.shortlink}")
elif kind == "eye":
author.eye = True
send_notification(CARP_ID, f"@{v.username} used {kind} award!")