Skip to content

Commit

Permalink
fix: disable previews in best comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vas3k committed Sep 18, 2023
1 parent ff8cbb8 commit b55b1b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion notifications/management/commands/send_best_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def handle(self, *args, **options):
send_telegram_message(
chat=Chat(id=TELEGRAM_CHANNEL_ID),
text=message,
disable_preview=False,
)
except Exception as ex:
self.stdout.write(f"Error sending the message: {ex}")
Expand Down
4 changes: 2 additions & 2 deletions notifications/telegram/templates/messages/best_comments.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load text_filters %}{% load posts %}Re: <b><a href="{{ settings.APP_HOST }}{% url "show_post" comment.post.type comment.post.slug %}">{% if comment.post.emoji %}{{ comment.post.emoji }} {% endif %}{% if comment.post.prefix %}{{ comment.post.prefix }} {% endif %}{{ comment.post.title }}</a></b> (+{{ comment.upvotes }})
{% load text_filters %}{% load posts %}Re: <b><a href="{{ settings.APP_HOST }}{% url "show_comment" comment.post.slug comment.id %}">{% if comment.post.emoji %}{{ comment.post.emoji }} {% endif %}{% if comment.post.prefix %}{{ comment.post.prefix }} {% endif %}{{ comment.post.title }}</a></b> (+{{ comment.upvotes }})

<b>{{ comment.author.slug }}:</b> {% render_plain comment 3000 %}

<a href="{{ settings.APP_HOST }}{% url "show_comment" comment.post.slug comment.id %}#comment-{{ comment.id }}">Посмотреть ➜</a>
<a href="{{ settings.APP_HOST }}{% url "show_comment" comment.post.slug comment.id %}">Посмотреть ➜</a>

0 comments on commit b55b1b2

Please sign in to comment.