Expanded TUI: Lemmy Info + Post History

This commit is contained in:
Neshura 2023-06-27 00:33:00 +02:00
parent 877c7ef324
commit 007570c2e3
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 60 additions and 39 deletions
src/config

View file

@ -144,6 +144,7 @@ impl Config {
post_history[idx].last_post_url = item.url.clone();
}
None => post_history.push(PrevPost {
id: feed.id,
title: data.title,
last_post_url: item.url.clone(),
}),
@ -163,6 +164,7 @@ pub_struct!(RedditConfig {
});
pub_struct!(FeedSetting {
id: usize,
feed_url: String,
communities: FeedCommunities,
reddit: FeedRedditSettings,
@ -190,6 +192,7 @@ pub_struct!(FeedRedditSettings {
// Posts structs
pub_struct!(PrevPost {
id: usize,
title: String,
last_post_url: String,
});