mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:10:15 +00:00
Don't add the type to the id in case of an activity
This commit is contained in:
parent
40a93223ee
commit
a6cb144c1e
2 changed files with 10 additions and 5 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue