feat: meow meow akkoma?

This commit is contained in:
aprilthepink 2024-06-27 05:13:38 +02:00
parent cd6ff024e4
commit dc4afd8411
13 changed files with 163 additions and 11 deletions

View file

@ -176,4 +176,9 @@ impl Actor for user::Model {
fn inbox(&self) -> Url {
Url::parse(&self.inbox).unwrap()
}
//TODO: Differenciate shared inbox
fn shared_inbox(&self) -> Option<Url> {
None
}
}

View file

@ -44,6 +44,12 @@ pub struct Note {
pub(crate) cc: Option<Vec<Url>>,
}
impl Note {
pub fn from_db(post: &post::Model) -> Self {
serde_json::from_str(&post.ap_json.as_ref().unwrap()).unwrap()
}
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Mention {
pub href: Url,