Make RemoteFetchActor follow activitystreams API change
This commit is contained in:
parent
5a39589289
commit
0422aa4abe
@ -68,7 +68,7 @@ fn fetch_and_cache_articles(user: &Arc<User>, conn: &DbConn) {
|
|||||||
match create_acts {
|
match create_acts {
|
||||||
Ok(create_acts) => {
|
Ok(create_acts) => {
|
||||||
for create_act in create_acts {
|
for create_act in create_acts {
|
||||||
match create_act.create_props.object_object::<LicensedArticle>() {
|
match create_act.object() {
|
||||||
Ok(article) => {
|
Ok(article) => {
|
||||||
Post::from_activity(conn, article)
|
Post::from_activity(conn, article)
|
||||||
.expect("Article from remote user couldn't be saved");
|
.expect("Article from remote user couldn't be saved");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user