Expanded TUI: Lemmy Info + Post History
This commit is contained in:
parent
877c7ef324
commit
007570c2e3
2 changed files with 60 additions and 39 deletions
src/config
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue