From fc99d2b7a0efe5efe84daaa770a6731d3d19f734 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Tue, 3 May 2022 00:57:19 +0900 Subject: [PATCH] Remove trailing 07 in remote_fetch_actor.rs --- plume-models/src/remote_fetch_actor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plume-models/src/remote_fetch_actor.rs b/plume-models/src/remote_fetch_actor.rs index 83d87b85..2d794650 100644 --- a/plume-models/src/remote_fetch_actor.rs +++ b/plume-models/src/remote_fetch_actor.rs @@ -6,11 +6,11 @@ use crate::{ ACTOR_SYS, CONFIG, USER_CHAN, }; use activitystreams::{ - activity::{ActorAndObjectRef, Create as Create07}, + activity::{ActorAndObjectRef, Create}, base::AnyBase, object::kind::ArticleType, }; -use plume_common::activity_pub::{inbox::FromId, LicensedArticle as LicensedArticle07}; +use plume_common::activity_pub::{inbox::FromId, LicensedArticle}; use riker::actors::{Actor, ActorFactoryArgs, ActorRefFactory, Context, Sender, Subscribe, Tell}; use std::sync::Arc; use tracing::{error, info, warn}; @@ -68,7 +68,7 @@ impl ActorFactoryArgs for RemoteFetchActor { } fn fetch_and_cache_articles(user: &Arc, conn: &DbConn) { - let create_acts = user.fetch_outbox07::(); + let create_acts = user.fetch_outbox07::(); match create_acts { Ok(create_acts) => { for create_act in create_acts { @@ -77,7 +77,7 @@ fn fetch_and_cache_articles(user: &Arc, conn: &DbConn) { .as_single_base() .and_then(|base| { let any_base = AnyBase::from_base(base.clone()); // FIXME: Don't clone() - any_base.extend::().ok() + any_base.extend::().ok() }) { Some(Some(article)) => { Post::from_activity07(conn, article)