Skip to content

Commit

Permalink
Fix selfhosted log urls
Browse files Browse the repository at this point in the history
  • Loading branch information
kyb3r committed Jan 19, 2019
1 parent a1d171b commit 1ba74d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ async def _close(self, closer, silent=False, delete_channel=True,
return

if self.bot.selfhosted:
log_url = f'{self.bot.config.log_url}/logs/{log_data["_id"]}'
log_url = f'{self.bot.config.log_url}/logs/{log_data["key"]}'
else:
log_url = f"https://logs.modmail.tk/" \
f"{log_data['_id']}"
f"{log_data['key']}"

user = self.recipient.mention if self.recipient else f'`{self.id}`'

Expand All @@ -116,7 +116,7 @@ async def _close(self, closer, silent=False, delete_channel=True,
else:
sneak_peak = 'No content'

desc = f"{user} [`{log_data['_id']}`]({log_url}): {sneak_peak}"
desc = f"{user} [`{log_data['key']}`]({log_url}): {sneak_peak}"

em = discord.Embed(description=desc, color=discord.Color.red())

Expand Down

0 comments on commit 1ba74d9

Please sign in to comment.