notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit efadd6153b910b4aeba148ce2dbcd027c3b36193
parent ddba62df476e9da38eb45222e685ab9098e3da00
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  3 Sep 2024 11:18:32 -0700

arg: add -c universe column

Add helper for adding universe columns

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/args.rs | 3+++
Msrc/column.rs | 5++++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/args.rs b/src/args.rs @@ -155,6 +155,9 @@ impl Args { res.columns.push(ArgColumn::Column(ColumnKind::profile( PubkeySource::DeckAuthor, ))) + } else if column_name == "universe" { + debug!("got universe column"); + res.columns.push(ArgColumn::Column(ColumnKind::Universe)) } else if let Some(profile_pk_str) = column_name.strip_prefix("profile:") { if let Ok(pubkey) = Pubkey::parse(profile_pk_str) { info!("got profile column for user {}", pubkey.hex()); diff --git a/src/column.rs b/src/column.rs @@ -68,7 +68,10 @@ impl ColumnKind { match self { ColumnKind::Universe => Some(Timeline::new( ColumnKind::Universe, - FilterState::ready(vec![]), + FilterState::ready(vec![Filter::new() + .kinds([1]) + .limit(filter::default_limit()) + .build()]), )), ColumnKind::Generic => {