Remote trailing 07 in inbox.rs

This commit is contained in:
Kitaiti Makoto 2022-05-03 02:12:59 +09:00
parent d23002b817
commit 9b04fb96e6

View File

@ -1,7 +1,4 @@
use activitystreams::activity::{ use activitystreams::activity::{Announce, Create, Delete, Follow, Like, Undo, Update};
Announce as Announce07, Create as Create07, Delete as Delete07, Follow as Follow07,
Like as Like07, Undo as Undo07, Update as Update07,
};
use crate::{ use crate::{
comments::Comment, comments::Comment,
@ -51,18 +48,18 @@ impl_into_inbox_result! {
pub fn inbox(conn: &DbConn, act: serde_json::Value) -> Result<InboxResult, Error> { pub fn inbox(conn: &DbConn, act: serde_json::Value) -> Result<InboxResult, Error> {
Inbox::handle(conn, act) Inbox::handle(conn, act)
.with::<User, Announce07, Post>(CONFIG.proxy()) .with::<User, Announce, Post>(CONFIG.proxy())
.with::<User, Create07, Comment>(CONFIG.proxy()) .with::<User, Create, Comment>(CONFIG.proxy())
.with::<User, Create07, Post>(CONFIG.proxy()) .with::<User, Create, Post>(CONFIG.proxy())
.with::<User, Delete07, Comment>(CONFIG.proxy()) .with::<User, Delete, Comment>(CONFIG.proxy())
.with::<User, Delete07, Post>(CONFIG.proxy()) .with::<User, Delete, Post>(CONFIG.proxy())
.with::<User, Delete07, User>(CONFIG.proxy()) .with::<User, Delete, User>(CONFIG.proxy())
.with::<User, Follow07, User>(CONFIG.proxy()) .with::<User, Follow, User>(CONFIG.proxy())
.with::<User, Like07, Post>(CONFIG.proxy()) .with::<User, Like, Post>(CONFIG.proxy())
.with::<User, Undo07, Reshare>(CONFIG.proxy()) .with::<User, Undo, Reshare>(CONFIG.proxy())
.with::<User, Undo07, follows::Follow>(CONFIG.proxy()) .with::<User, Undo, follows::Follow>(CONFIG.proxy())
.with::<User, Undo07, likes::Like>(CONFIG.proxy()) .with::<User, Undo, likes::Like>(CONFIG.proxy())
.with::<User, Update07, PostUpdate>(CONFIG.proxy()) .with::<User, Update, PostUpdate>(CONFIG.proxy())
.done() .done()
} }