Make RemoteFetchActor follow activitystreams API change

This commit is contained in:
Kitaiti Makoto 2022-01-23 08:32:53 +09:00
parent 5a39589289
commit 0422aa4abe

View File

@ -68,7 +68,7 @@ fn fetch_and_cache_articles(user: &Arc<User>, conn: &DbConn) {
match create_acts {
Ok(create_acts) => {
for create_act in create_acts {
match create_act.create_props.object_object::<LicensedArticle>() {
match create_act.object() {
Ok(article) => {
Post::from_activity(conn, article)
.expect("Article from remote user couldn't be saved");