diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 2ac507a3d..43adb2c5a 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -337,9 +337,9 @@ class ThreadItem { call_hooks('dropdown_extras',$dropdown_extras_arr); $dropdown_extras = $dropdown_extras_arr['dropdown_extras']; - // Pinned item processing - $allowed_type = (in_array($item['item_type'], get_config('system', 'pin_types', [ ITEM_TYPE_POST ])) ? true : false); - $pinned_items = ($allowed_type ? get_pconfig($item['uid'], 'pinned', $item['item_type'], []) : []); + // Pinned item processing + $allowed_type = (in_array($item['item_type'], get_config('system', 'pin_types', [ ITEM_TYPE_POST ])) ? true : false); + $pinned_items = ($allowed_type ? get_pconfig($item['uid'], 'pinned', $item['item_type'], []) : []); $pinned = ((! empty($pinned_items) && in_array($item['mid'], $pinned_items)) ? true : false); $tmp_item = array( @@ -430,7 +430,9 @@ class ThreadItem { 'filer' => ((feature_enabled($conv->get_profile_owner(),'filing')) ? $filer : ''), 'pinned' => ($pinned ? t('Pinned post') : ''), 'pinnable' => (($this->is_toplevel() && local_channel() && $item['owner_xchan'] == $observer['xchan_hash'] && $allowed_type && $item['item_private'] == 0 && $item['item_delayed'] == 0) ? '1' : ''), - 'pinme' => ($pinned ? t('Unpin this post') : t('Pin this post')), + 'pinme' => ($pinned ? t('Unpin this post') : t('Pin this post')), + 'isdraft' => boolval($item['item_unpublished']), + 'draft_txt' => t('Saved draft'), 'bookmark' => (($conv->get_profile_owner() == local_channel() && local_channel() && $has_bookmarks) ? t('Save Bookmarks') : ''), 'addtocal' => (($has_event && ! $item['resource_id']) ? t('Add to Calendar') : ''), 'drop' => $drop, diff --git a/boot.php b/boot.php index bcd76be04..631311f0c 100755 --- a/boot.php +++ b/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.03.05' ); +define ( 'STD_VERSION', '21.03.08' ); define ( 'ZOT_REVISION', '6.0' ); define ( 'DB_UPDATE_VERSION', 1247 ); diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 912e9f8db..8966ca224 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1847,3 +1847,4 @@ dl.bb-dl > dd > li { #channel_role_text { margin-bottom: 10px; } + diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl index ae52ca0a7..683b77d8d 100755 --- a/view/tpl/comment_item.tpl +++ b/view/tpl/comment_item.tpl @@ -71,7 +71,7 @@ {{/if}} {{if $save}} - {{/if}} diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index e7fc7e468..9a57eda43 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -38,6 +38,10 @@ {{if $item.pinned}}   {{/if}} + {{if $item.isdraft}} +   + {{/if}} +
{{$item.name}} diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index bee738547..a065148c8 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -217,8 +217,8 @@ {{/if}} {{if $save}} - {{/if}} {{if $jotnets}}