mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
Relocate functions in items.php into several classes
This commit is contained in:
parent
3ac1992237
commit
efa8dbcfb3
7 changed files with 304 additions and 285 deletions
|
@ -232,8 +232,7 @@ function item_post(App $a) {
|
|||
$network = notags(trim($_REQUEST['network']));
|
||||
$guid = get_guid(32);
|
||||
|
||||
item_add_language_opt($_REQUEST);
|
||||
$postopts = $_REQUEST['postopts'] ? $_REQUEST['postopts'] : "";
|
||||
$postopts = defaults($_REQUEST, 'postopts', '');
|
||||
|
||||
$private = ((strlen($str_group_allow) || strlen($str_contact_allow) || strlen($str_group_deny) || strlen($str_contact_deny)) ? 1 : 0);
|
||||
|
||||
|
@ -666,9 +665,6 @@ function item_post(App $a) {
|
|||
$datarray['edit'] = true;
|
||||
}
|
||||
|
||||
// Search for hashtags
|
||||
item_body_set_hashtags($datarray);
|
||||
|
||||
// preview mode - prepare the body for display and send it via json
|
||||
if ($preview) {
|
||||
require_once 'include/conversation.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue