aboutsummaryrefslogtreecommitdiff
path: root/src/tw
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2018-01-15 14:33:10 -0800
committerGitHub <noreply@github.com>2018-01-15 14:33:10 -0800
commitba66e351757c2b1a1efae8be294313d0806d48b4 (patch)
tree8a4e0117e8f2bb7754c512360ce97a6765d1a24f /src/tw
parentdeb7dff15aaef57a6fb1ecefeba9bfd3d895d84d (diff)
parent5ecfb0b6204481e9ca4ed1af09ce22ff4591c1e3 (diff)
Merge pull request #10 from iximeow/hm-translation
add flag to translate emoji to/from a description
Diffstat (limited to 'src/tw')
-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(),