diaspora_send_status() - recalculate markdown translation to pickup any later message changes after original submission like wall-to-wall attributions for instance. Normally this would've come from our cached version which was stored prior to tag_deliver being run and therefore isn't yet aware that wall-to-wall status may have changed after delivery.
This commit is contained in:
parent
084cddb32c
commit
41b74dd7ac
@ -294,9 +294,9 @@ function bb2diaspora_itemwallwall(&$item) {
|
||||
}
|
||||
|
||||
|
||||
function bb2diaspora_itembody($item) {
|
||||
function bb2diaspora_itembody($item,$force_update = false) {
|
||||
|
||||
if($item['diaspora_meta']) {
|
||||
if(($item['diaspora_meta']) && (! $force_update)) {
|
||||
$diaspora_meta = json_decode($item['diaspora_meta'],true);
|
||||
if($diaspora_meta) {
|
||||
if(array_key_exists('iv',$diaspora_meta)) {
|
||||
|
@ -2257,7 +2257,7 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) {
|
||||
$images = array();
|
||||
|
||||
$title = $item['title'];
|
||||
$body = bb2diaspora_itembody($item);
|
||||
$body = bb2diaspora_itembody($item,true);
|
||||
|
||||
/*
|
||||
// We're trying to match Diaspora's split message/photo protocol but
|
||||
|
Reference in New Issue
Block a user