Remove unused blogs::CustomGroup

This commit is contained in:
Kitaiti Makoto 2022-05-02 23:08:41 +09:00
parent 811c20c8fb
commit bc96af7f5f

View File

@ -2,7 +2,6 @@ use crate::{
db_conn::DbConn, instance::*, medias::Media, posts::Post, safe_string::SafeString, db_conn::DbConn, instance::*, medias::Media, posts::Post, safe_string::SafeString,
schema::blogs, users::User, Connection, Error, PlumeRocket, Result, CONFIG, ITEMS_PER_PAGE, schema::blogs, users::User, Connection, Error, PlumeRocket, Result, CONFIG, ITEMS_PER_PAGE,
}; };
use activitypub::{actor::Group, CustomObject};
use activitystreams::{ use activitystreams::{
actor::{ApActor, ApActorExt, AsApActor, Group as Group07}, actor::{ApActor, ApActorExt, AsApActor, Group as Group07},
base::AnyBase, base::AnyBase,
@ -21,13 +20,11 @@ use openssl::{
}; };
use plume_common::activity_pub::{ use plume_common::activity_pub::{
inbox::{AsActor, FromId}, inbox::{AsActor, FromId},
sign, ActivityStream, ApSignature, ApSignature07, CustomGroup as CustomGroup07, Id, IntoId, sign, ActivityStream, ApSignature07, CustomGroup as CustomGroup07, Id, IntoId, PublicKey07,
PublicKey07, Source, SourceProperty, ToAsString, ToAsUri, Source, SourceProperty, ToAsString, ToAsUri,
}; };
use webfinger::*; use webfinger::*;
pub type CustomGroup = CustomObject<ApSignature, Group>;
#[derive(Queryable, Identifiable, Clone, AsChangeset, Debug)] #[derive(Queryable, Identifiable, Clone, AsChangeset, Debug)]
#[changeset_options(treat_none_as_null = "true")] #[changeset_options(treat_none_as_null = "true")]
pub struct Blog { pub struct Blog {