added telegram to default city page text.

master
b3yond 2018-09-09 21:36:27 +02:00
parent 2e05c9ab91
commit 228c0f1264
2 changed files with 9 additions and 5 deletions

View File

@ -93,7 +93,8 @@
needs. needs.
</p> </p>
<p> <p>
<b>You should definitely adjust the Social Media profile links.</b> <b>You should definitely adjust the Social Media, E-Mail, and Telegram
profile links.</b>
Also consider adding this link to the text: <a href="/city/mail/{{city}}" Also consider adding this link to the text: <a href="/city/mail/{{city}}"
target="_blank">Link to the mail subscription page</a>. Your readers target="_blank">Link to the mail subscription page</a>. Your readers
can use this to subscribe to mail notifications. can use this to subscribe to mail notifications.

11
user.py
View File

@ -62,7 +62,7 @@ class User(object):
(self.uid, )) (self.uid, ))
patterns = db.cur.fetchone()[0] patterns = db.cur.fetchone()[0]
for pattern in patterns.splitlines(): for pattern in patterns.splitlines():
if pattern in report.text: if pattern in report.text.lower():
break break
else: else:
# no pattern matched # no pattern matched
@ -372,9 +372,10 @@ Aber je mehr Leute mitmachen, desto eher kannst du dir sicher
sein, dass wir sie finden, bevor sie uns finden. sein, dass wir sie finden, bevor sie uns finden.
Wenn du immer direkt gewarnt werden willst, kannst du auch die Wenn du immer direkt gewarnt werden willst, kannst du auch die
E-Mail-Benachrichtigungen aktivieren. Gib einfach Benachrichtigungen über E-Mail oder Telegram aktivieren. Gib
<a href="/city/mail/""" + city + """"/">hier</a> deine einfach <a href="/city/mail/""" + city + """"/">hier</a> deine
E-Mail-Adresse an. E-Mail-Adresse an oder subscribe dem Telegram-Bot [@ticketfrei_""" + city + \
"_bot](https://t.me/ticketfrei_" + city + """_bot)
Also, wenn du weniger Glück hast, und der erste bist, der einen Also, wenn du weniger Glück hast, und der erste bist, der einen
Kontrolleur sieht: Kontrolleur sieht:
@ -385,6 +386,8 @@ Ganz einfach, du schreibst es den anderen. Das geht entweder
* mit Mastodon [Link zu unserem Profil](""" + masto_link + """) * mit Mastodon [Link zu unserem Profil](""" + masto_link + """)
* über Twitter: [Link zu unserem Profil](""" + twit_link + """) * über Twitter: [Link zu unserem Profil](""" + twit_link + """)
* über Telegram an [@ticketfrei_""" + city + "_bot](https://t.me/ticketfrei_" \
+ city + """_bot)
* Oder per Mail an [""" + mailinglist + "](mailto:" + mailinglist + """), wenn * Oder per Mail an [""" + mailinglist + "](mailto:" + mailinglist + """), wenn
ihr kein Social Media benutzen wollt. ihr kein Social Media benutzen wollt.