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
|
@ -229,7 +229,7 @@ function item_post(App $a) {
|
||||||
$verb = notags(trim($_REQUEST['verb']));
|
$verb = notags(trim($_REQUEST['verb']));
|
||||||
$emailcc = notags(trim($_REQUEST['emailcc']));
|
$emailcc = notags(trim($_REQUEST['emailcc']));
|
||||||
$body = escape_tags(trim($_REQUEST['body']));
|
$body = escape_tags(trim($_REQUEST['body']));
|
||||||
$network = notags(trim($_REQUEST['network']));
|
$network = notags(trim(defaults($_REQUEST, 'network', NETWORK_DFRN)));
|
||||||
$guid = get_guid(32);
|
$guid = get_guid(32);
|
||||||
|
|
||||||
$postopts = defaults($_REQUEST, 'postopts', '');
|
$postopts = defaults($_REQUEST, 'postopts', '');
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -381,6 +381,7 @@ class OnePoll
|
||||||
$datarray = [];
|
$datarray = [];
|
||||||
$datarray['verb'] = ACTIVITY_POST;
|
$datarray['verb'] = ACTIVITY_POST;
|
||||||
$datarray['object-type'] = ACTIVITY_OBJ_NOTE;
|
$datarray['object-type'] = ACTIVITY_OBJ_NOTE;
|
||||||
|
$datarray['network'] = NETWORK_MAIL;
|
||||||
// $meta = Email::messageMeta($mbox, $msg_uid);
|
// $meta = Email::messageMeta($mbox, $msg_uid);
|
||||||
|
|
||||||
$datarray['uri'] = Email::msgid2iri(trim($meta->message_id, '<>'));
|
$datarray['uri'] = Email::msgid2iri(trim($meta->message_id, '<>'));
|
||||||
|
|
Loading…
Reference in a new issue