aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-12 21:20:08 -0700
committerfriendica <info@friendica.com>2014-10-12 21:20:08 -0700
commit41b74dd7ac2c879841873d59423be7d2577b6f87 (patch)
treeeed0acee2d5f8a8a1d113f91bd2809dc8492fbe2
parent084cddb32c58b7e26ff5080bab4a5c5073eeca39 (diff)
downloadvolse-hubzilla-41b74dd7ac2c879841873d59423be7d2577b6f87.tar.gz
volse-hubzilla-41b74dd7ac2c879841873d59423be7d2577b6f87.tar.bz2
volse-hubzilla-41b74dd7ac2c879841873d59423be7d2577b6f87.zip
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.
-rw-r--r--include/bb2diaspora.php4
-rwxr-xr-xinclude/diaspora.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index a80b3343b..76708143b 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -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)) {
diff --git a/include/diaspora.php b/include/diaspora.php
index fb321a813..b35318eac 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -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