diff options
author | Max Kostikov <max@kostikov.co> | 2020-12-12 10:07:39 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-12-12 10:07:39 +0100 |
commit | a4b83327c2f47bbe00ee9a81f4f0fb065f041ee3 (patch) | |
tree | f9b54022db467180e0a1085cbd0bac04e2c46478 /include/items.php | |
parent | 92eb7a0be4faac80ea86a88b1c249e273dbfeb9f (diff) | |
parent | 8c1c49a45ed28f5235d6a5f7668d2c31158fbea3 (diff) | |
download | volse-hubzilla-a4b83327c2f47bbe00ee9a81f4f0fb065f041ee3.tar.gz volse-hubzilla-a4b83327c2f47bbe00ee9a81f4f0fb065f041ee3.tar.bz2 volse-hubzilla-a4b83327c2f47bbe00ee9a81f4f0fb065f041ee3.zip |
Merge branch 'dev' into 'dev'
Dev sync
See merge request kostikov/core!3
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/items.php b/include/items.php index a027be4b2..bcdc6c687 100755 --- a/include/items.php +++ b/include/items.php @@ -1551,7 +1551,7 @@ function get_mail_elements($x) { $arr['expires'] = datetime_convert('UTC','UTC',$x['expires']); $arr['mail_flags'] = 0; - + if(array_key_exists('sig',$x)) $arr['sig'] = $x['sig']; @@ -3022,7 +3022,7 @@ function tgroup_check($uid, $item) { } // post to group via DM - + if ($is_group) { if (intval($item['item_private']) === 2 && $item['mid'] === $item['parent_mid']) { return true; @@ -3199,7 +3199,7 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false if ($group && (! $parent)) { $arr = []; - + if ($edit) { // process edit or delete action $r = q("select * from item where source_xchan = '%s' and body like '%s' and uid = %d limit 1", @@ -3231,12 +3231,12 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false $arr['mid'] = z_root() . '/activity/' . $arr['uuid']; $arr['parent_mid'] = $arr['mid']; } - + $arr['aid'] = $channel['channel_account_id']; $arr['uid'] = $channel['channel_id']; // WARNING: the presence of both source_xchan and non-zero item_uplink here will cause a delivery loop - + $arr['item_uplink'] = 0; $arr['source_xchan'] = $item['owner_xchan']; @@ -3246,14 +3246,14 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false $arr['item_origin'] = 1; $arr['item_wall'] = 1; $arr['item_thread_top'] = 1; - + if (strpos($item['body'], "[/share]") !== false) { $pos = strpos($item['body'], "[share"); $bb = substr($item['body'], $pos); } else { $bb = "[share author='" . urlencode($item['author']['xchan_name']). "' profile='" . $item['author']['xchan_url'] . - "' portable_id='" . $item['author']['xchan_hash'] . + "' portable_id='" . $item['author']['xchan_hash'] . "' avatar='" . $item['author']['xchan_photo_s'] . "' link='" . $item['plink'] . "' auth='" . ((in_array($item['author']['xchan_network'], ['zot6','zot'])) ? 'true' : 'false') . |