string update, check to see if activity target is already json_decoded

This commit is contained in:
nobody 2021-04-29 22:37:19 -07:00
parent 84e8556e96
commit a105ee45b1
3 changed files with 1044 additions and 1032 deletions

View file

@ -16,7 +16,7 @@ use Zotlabs\Daemon\Run;
* @brief This file defines some global constants and includes the central App class.
*/
define ( 'STD_VERSION', '21.04.28' );
define ( 'STD_VERSION', '21.04.30' );
define ( 'ZOT_REVISION', '10.0' );
define ( 'DB_UPDATE_VERSION', 1248 );

View file

@ -2598,7 +2598,13 @@ function tag_deliver($uid, $item_id) {
if ($is_group && intval($item['item_thread_top']) && (! intval($item['item_wall'])) && (strpos($item['tgt_type'],'Collection') !== false) && $item['target']) {
// group delivery via target - use post_wall permission since send_stream is probably turned off
// and this will be turned into an embedded wall-to-wall post
$a = json_decode($item['target'],true);
if (is_array($item['target'])) {
$a = $item['target'];
}
else {
$a = json_decode($item['target'],true);
}
if ($a) {
$id = ((is_string($a)) ? $a : EMPTY_STR);
if (is_array($a) && isset($a['id'])) {

File diff suppressed because it is too large Load diff