chore(web): better emojis

This commit is contained in:
əlemi 2024-04-17 15:35:57 +02:00
parent 784557eecf
commit 5dd4f0e19d
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -377,9 +377,9 @@ pub fn InlineActivity(activity: serde_json::Value) -> impl IntoView {
let privacy = if addressed.iter().any(|x| x == apb::target::PUBLIC) {
"🌐"
} else if addressed.iter().any(|x| x.ends_with("/followers")) {
"👥"
} else {
"🔒"
} else {
"🔗"
};
let date = object.published().map(|x| x.format("%Y/%m/%d %H:%M:%S").to_string()).unwrap_or_else(||
activity.published().map(|x| x.format("%Y/%m/%d %H:%M:%S").to_string()).unwrap_or_default()