mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +00:00
cargo fmt
This commit is contained in:
parent
e37b00caf6
commit
ac79ab3c6b
@ -397,10 +397,7 @@ impl Minion {
|
|||||||
// Posts made by the person
|
// Posts made by the person
|
||||||
filters.push(Filter {
|
filters.push(Filter {
|
||||||
authors: vec![pubkey.clone()],
|
authors: vec![pubkey.clone()],
|
||||||
kinds: vec![
|
kinds: vec![EventKind::TextNote, EventKind::EventDeletion],
|
||||||
EventKind::TextNote,
|
|
||||||
EventKind::EventDeletion,
|
|
||||||
],
|
|
||||||
// No since, just a limit on quantity of posts
|
// No since, just a limit on quantity of posts
|
||||||
limit: Some(25),
|
limit: Some(25),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
@ -409,9 +406,7 @@ impl Minion {
|
|||||||
// Reactions to posts made by the person
|
// Reactions to posts made by the person
|
||||||
// (presuming people include a 'p' tag in their reactions)
|
// (presuming people include a 'p' tag in their reactions)
|
||||||
filters.push(Filter {
|
filters.push(Filter {
|
||||||
kinds: vec![
|
kinds: vec![EventKind::Reaction],
|
||||||
EventKind::Reaction
|
|
||||||
],
|
|
||||||
p: vec![pubkey],
|
p: vec![pubkey],
|
||||||
// Limited in time just so we aren't overwhelmed. Generally we only need reactions
|
// Limited in time just so we aren't overwhelmed. Generally we only need reactions
|
||||||
// to their most recent posts. This is a very sloppy and approximate solution.
|
// to their most recent posts. This is a very sloppy and approximate solution.
|
||||||
|
@ -400,11 +400,7 @@ fn render_post_actual(
|
|||||||
let space = 100.0 * (10.0 - (1000.0 / (indent as f32 + 100.0)));
|
let space = 100.0 * (10.0 - (1000.0 / (indent as f32 + 100.0)));
|
||||||
ui.add_space(space);
|
ui.add_space(space);
|
||||||
if indent > 0 {
|
if indent > 0 {
|
||||||
ui.label(
|
ui.label(RichText::new(format!("{}>", indent)).italics().weak());
|
||||||
RichText::new(format!("{}>", indent))
|
|
||||||
.italics()
|
|
||||||
.weak()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user