testing dmeta
This commit is contained in:
parent
d07afb54e4
commit
21b0128e9e
@ -268,7 +268,7 @@ function bb2dmention_callback($match) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function bb2diaspora_itemwallwall(&$item) {
|
function bb2diaspora_itemwallwall(&$item, $newpost = false) {
|
||||||
|
|
||||||
// We will provide wallwall (embedded author on the Diaspora side) if
|
// We will provide wallwall (embedded author on the Diaspora side) if
|
||||||
// 1. It is a wall-to-wall post
|
// 1. It is a wall-to-wall post
|
||||||
@ -289,10 +289,9 @@ function bb2diaspora_itemwallwall(&$item) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$has_meta = false;
|
$has_meta = false;
|
||||||
if($item['diaspora_meta'] || get_iconfig($item,'diaspora','fields'))
|
if((! $newpost) && ($item['diaspora_meta'] || get_iconfig($item,'diaspora','fields')))
|
||||||
$has_meta = true;
|
$has_meta = true;
|
||||||
|
|
||||||
|
|
||||||
if($item['author_xchan'] != $item['owner_xchan']) {
|
if($item['author_xchan'] != $item['owner_xchan']) {
|
||||||
if($item['mid'] == $item['parent_mid'])
|
if($item['mid'] == $item['parent_mid'])
|
||||||
$wallwall = true;
|
$wallwall = true;
|
||||||
@ -319,11 +318,11 @@ function bb2diaspora_itemwallwall(&$item) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function bb2diaspora_itembody($item, $force_update = false) {
|
function bb2diaspora_itembody($item, $force_update = false, $newpost = false) {
|
||||||
|
|
||||||
|
|
||||||
if(! get_iconfig($item,'diaspora','fields')) {
|
if(! get_iconfig($item,'diaspora','fields')) {
|
||||||
force_update = true;
|
$force_update = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$matches = array();
|
$matches = array();
|
||||||
@ -363,7 +362,7 @@ function bb2diaspora_itembody($item, $force_update = false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bb2diaspora_itemwallwall($newitem);
|
bb2diaspora_itemwallwall($newitem, $newpost);
|
||||||
|
|
||||||
$title = $newitem['title'];
|
$title = $newitem['title'];
|
||||||
$body = preg_replace('/\#\^http/i', 'http', $newitem['body']);
|
$body = preg_replace('/\#\^http/i', 'http', $newitem['body']);
|
||||||
|
Reference in New Issue
Block a user