diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-10-20 09:36:15 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-10-20 09:36:15 +0200 |
commit | f7601756e99fcedb062d1f7ac3e53431ea72642d (patch) | |
tree | 5aae7959b0b2d16fc7e374335ddc85984b9a482d /mod | |
parent | 54059b2f153433f7154a754a77dafba1cc97a1a2 (diff) | |
download | volse-hubzilla-f7601756e99fcedb062d1f7ac3e53431ea72642d.tar.gz volse-hubzilla-f7601756e99fcedb062d1f7ac3e53431ea72642d.tar.bz2 volse-hubzilla-f7601756e99fcedb062d1f7ac3e53431ea72642d.zip |
create photo object if feature large photos is enabled and display those slightly different
Diffstat (limited to 'mod')
-rw-r--r-- | mod/editpost.php | 2 | ||||
-rw-r--r-- | mod/item.php | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/mod/editpost.php b/mod/editpost.php index d4dc35ef8..1bee16ee7 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -129,7 +129,7 @@ function editpost_content(&$a) { '$consensus' => intval($itm[0]['item_consensus']), '$wait' => t('Please wait'), '$permset' => t('Permission settings'), - '$ptyp' => $itm[0]['type'], + '$ptyp' => $itm[0]['obj_type'], '$content' => undo_post_tagging($itm[0]['body']), '$post_id' => $post_id, '$parent' => (($itm[0]['parent'] != $itm[0]['id']) ? $itm[0]['parent'] : ''), diff --git a/mod/item.php b/mod/item.php index 7488e709b..32c417c56 100644 --- a/mod/item.php +++ b/mod/item.php @@ -107,7 +107,6 @@ function item_post(&$a) { $layout_mid = ((x($_REQUEST,'layout_mid')) ? escape_tags($_REQUEST['layout_mid']): ''); $plink = ((x($_REQUEST,'permalink')) ? escape_tags($_REQUEST['permalink']) : ''); $obj_type = ((x($_REQUEST,'obj_type')) ? escape_tags($_REQUEST['obj_type']) : ACTIVITY_OBJ_NOTE); - // allow API to bulk load a bunch of imported items with sending out a bunch of posts. $nopush = ((x($_REQUEST,'nopush')) ? intval($_REQUEST['nopush']) : 0); |