mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-24 02:50:37 +00:00
Try to fix the Hubzilla issue (#107) again
This commit is contained in:
parent
389ad28d14
commit
488bd929c5
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ use plume_models::{
|
||||||
|
|
||||||
pub trait Inbox {
|
pub trait Inbox {
|
||||||
fn received(&self, conn: &PgConnection, act: serde_json::Value) -> Result<(), Error> {
|
fn received(&self, conn: &PgConnection, act: serde_json::Value) -> Result<(), Error> {
|
||||||
let actor_id = Id::new(act["actor"].as_str().unwrap());
|
let actor_id = Id::new(act["actor"].as_str().unwrap_or(act["actor"]["id"].as_str().expect("No actor ID for incoming activity")));
|
||||||
match act["type"].as_str() {
|
match act["type"].as_str() {
|
||||||
Some(t) => {
|
Some(t) => {
|
||||||
match t {
|
match t {
|
||||||
|
|
Loading…
Reference in a new issue