make sure post entry has expected content type, reorganize post members

This commit is contained in:
postscriptum 2025-07-02 20:38:22 +03:00
parent 5d24b9e46e
commit b6d2088863
6 changed files with 73 additions and 43 deletions

View file

@ -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);