From 70f8c14e99f3a038243fe0d6ba9570a4ded8833b Mon Sep 17 00:00:00 2001 From: VC Date: Thu, 24 Nov 2022 08:00:46 +0100 Subject: [PATCH] doc: regexp + alt services --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 0f5e608..bea2e30 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,19 @@ First up, create a configuration file (default path is `/usr/local/etc/scootaloo db_path = "/var/lib/scootaloo/scootaloo.sqlite" ## file containing the SQLite Tweet corresponding Toot DB, must be writeable cache_path = "/tmp/scootaloo" ## a dir where the temporary files will be download, must be writeable rate_limiting = 4 ## optional, default 4, number of accounts handled simultaneously +## optional, this should be omitted the majority of the time +## sometimes, twitter try to use french inclusive writting, but instead of using `·` (median point), they’re using `.` +## this makes twitter interpret it as a URL, which is wrong +## this parameter allows you to catch such URLs and apply the `display_url` (i.e. `tout.es`) instead of the `expanded_url` (i.e. `http://tout.es`) +## in those particular cases +## (!) use with caution, it might have some undesired effects +show_url_as_display_url_for = "^http(s)://(.+)\\.es$" +## optional, this allows you to replace the host for popular services such as YouTube of Twitter, or any other +## with their more freely accessible equivalent +[scootaloo.alternative_services_for] +"tamere.lol" = "tonpere.mdr" ## quotes are necessary for both parameters +"you.pi" = "you.pla" +"www.you.pi" = "you.pla" ## this is an exact match, so you’ll need to lay out all the possibilities [twitter] ## Consumer/Access key for Twitter (can be generated at https://developer.twitter.com/en/apps)