Don't broadcast activities to local users

Fix #80
This commit is contained in:
Bat
2018-07-18 15:49:13 +02:00
parent 62007d17ee
commit 389ad28d14
4 changed files with 11 additions and 0 deletions
+4
View File
@@ -257,6 +257,10 @@ impl WithInbox for Blog {
fn get_shared_inbox_url(&self) -> Option<String> {
None
}
fn is_local(&self) -> bool {
self.instance_id == 0
}
}
impl sign::Signer for Blog {
+4
View File
@@ -421,6 +421,10 @@ impl WithInbox for User {
fn get_shared_inbox_url(&self) -> Option<String> {
self.shared_inbox_url.clone()
}
fn is_local(&self) -> bool {
self.instance_id == 0
}
}
impl Signer for User {