Don't add the type to the id in case of an activity

This commit is contained in:
Michael 2020-09-01 02:38:44 +00:00
parent 40a93223ee
commit a6cb144c1e
2 changed files with 10 additions and 5 deletions

View file

@ -981,7 +981,12 @@ class Transmitter
$data = [];
}
$data['id'] = $item['uri'] . '/' . $type;
if (($item['gravity'] == GRAVITY_ACTIVITY) && ($type != 'Undo')) {
$data['id'] = $item['uri'];
} else {
$data['id'] = $item['uri'] . '/' . $type;
}
$data['type'] = $type;
if (($type != 'Announce') || ($item['gravity'] != GRAVITY_PARENT)) {