mirror of
https://github.com/friendica/friendica
synced 2025-04-22 23:50:13 +00:00
Location, coord and app are now processed as well
This commit is contained in:
parent
aab4fa0c31
commit
e829e074fc
2 changed files with 14 additions and 19 deletions
|
@ -212,8 +212,13 @@ class Processor
|
|||
$item['content-warning'] = HTML::toBBCode($activity['summary']);
|
||||
$item['body'] = self::convertMentions(HTML::toBBCode($activity['content']));
|
||||
$item['location'] = $activity['location'];
|
||||
|
||||
if (!empty($item['latitude']) && !empty($item['longitude'])) {
|
||||
$item['coord'] = $item['latitude'] . ' ' . $item['longitude'];
|
||||
}
|
||||
|
||||
$item['tag'] = self::constructTagList($activity['tags'], $activity['sensitive']);
|
||||
$item['app'] = $activity['service'];
|
||||
$item['app'] = $activity['generator'];
|
||||
$item['plink'] = defaults($activity, 'alternate-url', $item['uri']);
|
||||
$item['diaspora_signed_text'] = defaults($activity, 'diaspora:comment', '');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue