mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-04-01 05:35:27 +00:00
make sure post entry has expected content type, reorganize post members
This commit is contained in:
parent
5d24b9e46e
commit
b6d2088863
6 changed files with 73 additions and 43 deletions
|
|
@ -42,6 +42,10 @@ fn sync(snac: &Snac, nex: &Nex) -> Result<(usize, usize)> {
|
|||
println!("\tsync profile for `{}`...", user.name);
|
||||
for post in user.public()? {
|
||||
t += 1;
|
||||
// make sure post entry has expected content type
|
||||
if !post.is_note() {
|
||||
todo!()
|
||||
}
|
||||
// skip non authorized content
|
||||
if let Some(content) = post.source_content {
|
||||
println!("\t\tsync post `{}`...", post.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue