Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Post #12

Open
kwaa opened this issue Feb 4, 2024 · 1 comment
Open

Update Post #12

kwaa opened this issue Feb 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@kwaa
Copy link
Member

kwaa commented Feb 4, 2024

Hatsu does not currently handle post updates.

if let Some(date_modified) = item.date_modified {
match prev_item.date_modified {
Some(prev_date_modified) if prev_date_modified != date_modified => {
// TODO: Update Post
}
None => {
// TODO: Update Post
}
_ => {}
}
}
Ok(())
}
None => Ok(create_feed_item(data, user, item).await?),

In v0.2.0, it should upsert the database and send an update activity.

@kwaa kwaa added the enhancement New feature or request label Feb 4, 2024
@kwaa kwaa added this to the 0.2 [celluloid] milestone Feb 4, 2024
@kwaa
Copy link
Member Author

kwaa commented Mar 27, 2024

Implemented in 6acacb3, need to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant