feat: Refactor migration and follow code

This commit is contained in:
aprilthepink 2024-05-05 17:05:09 +02:00
parent 468371d43d
commit ce5f97ac33
5 changed files with 78 additions and 6 deletions

View file

@ -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 {