]> Untitled Git - lemmy.git/commitdiff
Merge branch 'main' into no_conflict_triggers
authorDessalines <tyhou13@gmx.com>
Thu, 8 Oct 2020 01:57:29 +0000 (20:57 -0500)
committerDessalines <tyhou13@gmx.com>
Thu, 8 Oct 2020 01:57:29 +0000 (20:57 -0500)
1  2 
lemmy_apub/src/comment.rs
lemmy_apub/src/inbox/community_inbox.rs
lemmy_apub/src/post.rs
lemmy_db/src/activity.rs

Simple merge
index d979e27fe7c44f359532296091bda7e0d35bfc4f,6f5f1854ee066397dab03f87517e80e93d2901d3..e4ee7b37521fad47e34be04df06b2a38c9354ab9
@@@ -48,15 -48,10 +48,19 @@@ pub async fn community_inbox
    })
    .await??;
  
 +  if !community.local {
 +    return Err(
 +      anyhow!(
 +        "Received activity is addressed to remote community {}",
 +        &community.actor_id
 +      )
 +      .into(),
 +    );
 +  }
+   debug!(
+     "Community {} received activity {:?}",
+     &community.name, &activity
+   );
    let user_uri = activity
      .actor()?
      .as_single_xsd_any_uri()
Simple merge
Simple merge