when translating like activities, we're distinguishing comments from posts by mid and parent_mid; neither if which are present in the stored activity object

This commit is contained in:
zotlabs 2016-10-18 21:42:54 -07:00
parent 29320f8aad
commit b926a4c67e

View File

@ -146,7 +146,7 @@ function localize_item(&$item){
case ACTIVITY_OBJ_NOTE: case ACTIVITY_OBJ_NOTE:
default: default:
$post_type = t('status'); $post_type = t('status');
if($obj['mid'] != $obj['parent_mid']) if($obj['id'] != $obj['parent'])
$post_type = t('comment'); $post_type = t('comment');
break; break;
} }