| 1 | mod actions; |
| 2 | pub mod feed; |
| 3 | pub mod server; |
| 4 | pub mod service; |
| 5 | |
| 6 | pub use feed::{Actor, Entry, Filter, Kind}; |
| 7 | pub use service::ActivityCenter; |
| 8 | |
| 9 | use crate::notify::Preview; |
| 10 | |
| 11 | const IMAGE_LABEL: &str = "Image"; |
| 12 | |
| 13 | pub(crate) fn preview_label(preview: &Preview) -> String { |
| 14 | match preview { |
| 15 | Preview::Text(text) => text.clone(), |
| 16 | Preview::Image => IMAGE_LABEL.to_owned(), |
| 17 | } |
| 18 | } |