aboutsummaryrefslogtreecommitdiff
path: root/src/display
diff options
context:
space:
mode:
Diffstat (limited to 'src/display')
-rw-r--r--src/display/mod.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/display/mod.rs b/src/display/mod.rs
index 098bb1c..f2f59da 100644
--- a/src/display/mod.rs
+++ b/src/display/mod.rs
@@ -830,8 +830,19 @@ pub fn render_twete_no_recurse(twete_id: &TweetId, tweeter: &tw::TwitterCache, d
colorized_lines.push(new_line);
}
+ let emoji_replaced: Vec<String> = if tweeter.translate_emoji {
+ colorized_lines.iter().map(|line| {
+ line
+ .replace("🤔", ":thinking:")
+ .replace("👏",":clap:")
+ }).collect()
+ } else {
+ colorized_lines
+ };
+
+
let mut urls_to_include: Vec<&str> = vec![];
- let urls_replaced = colorized_lines
+ let urls_replaced = emoji_replaced
.into_iter()
.map(|line| {
let mut result: String = line.to_owned();