aboutsummaryrefslogtreecommitdiff
path: root/src/tw/mod.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2018-01-15 14:18:23 -0800
committeriximeow <me@iximeow.net>2018-01-15 14:18:23 -0800
commit5ecfb0b6204481e9ca4ed1af09ce22ff4591c1e3 (patch)
tree8a4e0117e8f2bb7754c512360ce97a6765d1a24f /src/tw/mod.rs
parentdeb7dff15aaef57a6fb1ecefeba9bfd3d895d84d (diff)
add flag to translate emoji to/from a description
right now only handles :thinking: and :clap:, toggled by translate_emoji in profile.json
Diffstat (limited to 'src/tw/mod.rs')
-rw-r--r--src/tw/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tw/mod.rs b/src/tw/mod.rs
index 63b8f07..4aa0365 100644
--- a/src/tw/mod.rs
+++ b/src/tw/mod.rs
@@ -136,6 +136,8 @@ pub struct TwitterCache {
pub profiles: HashMap<String, TwitterProfile>,
mutes: MuteInfo,
threads: HashMap<String, u64>, // thread : latest_tweet_in_thread
+ #[serde(default = "bool::default")]
+ pub translate_emoji: bool,
#[serde(skip)]
pub needs_save: bool,
#[serde(skip)]
@@ -668,6 +670,7 @@ impl TwitterCache {
// have one channel up per twitter stream...
curr_profile: None,
profiles: HashMap::new(),
+ translate_emoji: false,
needs_save: false,
caching_permitted: true,
threads: HashMap::new(),