mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:35:13 +00:00
string update, check to see if activity target is already json_decoded
This commit is contained in:
parent
84e8556e96
commit
a105ee45b1
3 changed files with 1044 additions and 1032 deletions
2
boot.php
2
boot.php
|
@ -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 );
|
||||
|
|
|
@ -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'])) {
|
||||
|
|
2066
util/messages.po
2066
util/messages.po
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue