mirror of
https://github.com/versia-pub/activitypub.git
synced 2026-03-13 10:59:17 +01:00
feat: meow meow akkoma?
This commit is contained in:
parent
cd6ff024e4
commit
dc4afd8411
13 changed files with 163 additions and 11 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue