Fix processing of received coordinates

pull/8824/head
Michael 2 years ago
parent c852e1479c
commit a1a9d4f657
  1. 4
      src/Protocol/ActivityPub/Processor.php

@ -385,8 +385,8 @@ class Processor
$item['location'] = $activity['location'];
if (!empty($item['latitude']) && !empty($item['longitude'])) {
$item['coord'] = $item['latitude'] . ' ' . $item['longitude'];
if (!empty($activity['latitude']) && !empty($activity['longitude'])) {
$item['coord'] = $activity['latitude'] . ' ' . $activity['longitude'];
}
$item['app'] = $activity['generator'];

Loading…
Cancel
Save