Commit 250ce0b3 authored by Mario's avatar Mario

Revert "sync private local comments which will not be catched in Receiver.php comment()"

This reverts commit ad44cdc7
parent 78fe1c80
......@@ -35,7 +35,6 @@ function diaspora_load() {
'module_loaded' => 'diaspora_load_module',
'follow_allow' => 'diaspora_follow_allow',
'post_local' => 'diaspora_post_local',
'item_stored' => 'diaspora_item_stored',
'well_known' => 'diaspora_well_known',
'create_identity' => 'diaspora_create_identity',
'profile_sidebar' => 'diaspora_profile_sidebar',
......@@ -874,23 +873,8 @@ function diaspora_post_local(&$item) {
if($meta)
set_iconfig($item,'diaspora','fields', $meta, true);
}
function diaspora_item_stored(&$item) {
// Sync private local comments which will not be catched in Receiver.php comment()
if($item['mid'] === $item['parent_mid'])
return;
if(! $item['item_origin'])
return;
if(! $item['item_private'])
return;
if(! Apps::addon_app_installed($item['uid'], 'diaspora'))
return;
sync_an_item($item['uid'],$item['id']);
}
function diaspora_create_identity($b) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment