mirror of
https://github.com/friendica/friendica
synced 2025-04-22 14:30:12 +00:00
API: Forum mentions are now working
This commit is contained in:
parent
1f1d3b2578
commit
f853d58198
3 changed files with 98 additions and 75 deletions
|
@ -78,11 +78,6 @@ class Update extends BaseApi
|
|||
$body = Markdown::toBBCode($request['status']);
|
||||
}
|
||||
|
||||
// Avoids potential double expansion of existing links
|
||||
$body = BBCode::performWithEscapedTags($body, ['url'], function ($body) {
|
||||
return BBCode::expandTags($body);
|
||||
});
|
||||
|
||||
$item = [];
|
||||
$item['uid'] = $uid;
|
||||
$item['verb'] = Activity::POST;
|
||||
|
@ -127,6 +122,8 @@ class Update extends BaseApi
|
|||
$item['object-type'] = Activity\ObjectType::NOTE;
|
||||
}
|
||||
|
||||
$item = DI::contentItem()->expandTags($item);
|
||||
|
||||
if (!empty($request['media_ids'])) {
|
||||
$ids = explode(',', $request['media_ids']);
|
||||
} elseif (!empty($_FILES['media'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue