mirror of
https://github.com/versia-pub/activitypub.git
synced 2026-03-13 10:59:17 +01:00
feat: Refactor migration and follow code
This commit is contained in:
parent
468371d43d
commit
ce5f97ac33
5 changed files with 78 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use crate::{
|
||||
activities::create_post::CreatePost,
|
||||
activities::{create_post::CreatePost, follow::Follow},
|
||||
database::{State, StateHandle},
|
||||
entities::{self, user},
|
||||
error::Error,
|
||||
|
|
@ -40,6 +40,7 @@ pub struct DbUser {
|
|||
#[enum_delegate::implement(ActivityHandler)]
|
||||
pub enum PersonAcceptedActivities {
|
||||
CreateNote(CreatePost),
|
||||
Follow(Follow),
|
||||
}
|
||||
|
||||
impl DbUser {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue