Merge pull request #4487 from annando/item-enhanced
The item class had been improved (e.g. database calls)
This commit is contained in:
commit
f8cb18ff64
3 changed files with 341 additions and 419 deletions
|
@ -229,7 +229,7 @@ function item_post(App $a) {
|
|||
$verb = notags(trim($_REQUEST['verb']));
|
||||
$emailcc = notags(trim($_REQUEST['emailcc']));
|
||||
$body = escape_tags(trim($_REQUEST['body']));
|
||||
$network = notags(trim($_REQUEST['network']));
|
||||
$network = notags(trim(defaults($_REQUEST, 'network', NETWORK_DFRN)));
|
||||
$guid = get_guid(32);
|
||||
|
||||
$postopts = defaults($_REQUEST, 'postopts', '');
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -381,6 +381,7 @@ class OnePoll
|
|||
$datarray = [];
|
||||
$datarray['verb'] = ACTIVITY_POST;
|
||||
$datarray['object-type'] = ACTIVITY_OBJ_NOTE;
|
||||
$datarray['network'] = NETWORK_MAIL;
|
||||
// $meta = Email::messageMeta($mbox, $msg_uid);
|
||||
|
||||
$datarray['uri'] = Email::msgid2iri(trim($meta->message_id, '<>'));
|
||||
|
|
Loading…
Reference in a new issue