API: Forum mentions are now working
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user