Skip to content

Commit

Permalink
fix: use absolute room url in help desk bot
Browse files Browse the repository at this point in the history
  • Loading branch information
vas3k committed Sep 10, 2024
1 parent a5d1000 commit 2652216
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/crontab
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
30 */4 * * 1-6 root cd /app && python3 manage.py send_best_comments >/proc/1/fd/1 2>/proc/1/fd/2
0 09 * * 1 root cd /app && python3 manage.py send_weekly_digest --production true >/proc/1/fd/1 2>/proc/1/fd/2
0 10 * * * root cd /app && python3 manage.py send_subscription_expired --production true >/proc/1/fd/1 2>/proc/1/fd/2
0 5 * * 7 root cd /app && python3 manage.py rebuild_search_index >/proc/1/fd/1 2>/proc/1/fd/2
0 2 * * 7 root cd /app && python3 manage.py rebuild_search_index >/proc/1/fd/1 2>/proc/1/fd/2
0 8 * * * root cd /app && python3 manage.py replay_stuck_reviews >/proc/1/fd/1 2>/proc/1/fd/2
0 8 * * * root find /app/gdpr/downloads/ -mindepth 1 -mtime +3 -type f -delete >/proc/1/fd/1 2>/proc/1/fd/2
13 * * * * root cd /app && python3 manage.py update_hotness >/proc/1/fd/1 2>/proc/1/fd/2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
💬 <a href="https://t.me/c/{{ reply_chat_id }}/{{ reply_msg_id }}">Ответ</a> от <a href="tg://user?id={from_user.id}">{{ from_user.first_name }} {{ from_user.last_name|default:"" }}</a> из чата <a href="{{ room.chat_url }}">{{ room.title }}</a>:
💬 <a href="https://t.me/c/{{ reply_chat_id }}/{{ reply_msg_id }}">Ответ</a> от <a href="tg://user?id={from_user.id}">{{ from_user.first_name }} {{ from_user.last_name|default:"" }}</a> из чата <a href="{{ settings.APP_HOST }}{{ room.chat_url }}">{{ room.title }}</a>:

{{ text }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if question.room %}<a href="{{ room.get_private_url }}"><b>{{ question.room }}</b></a>
{% if question.room %}<a href="{{ settings.APP_HOST }}{{ room.chat_url }}"><b>{{ question.room }}</b></a>

{% endif %}<b>{{ question.title }}</b> от <a href="{{ settings.APP_HOST }}{% url "profile" user.slug %}">{{ user.full_name }}</a>

Expand Down

0 comments on commit 2652216

Please sign in to comment.