diff options
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 9 | ||||
-rw-r--r-- | view/js/main.js | 6 | ||||
-rw-r--r-- | view/tpl/conv_item.tpl | 3 |
3 files changed, 3 insertions, 15 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index ee74ffa60..cba7cf947 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -354,12 +354,9 @@ class ThreadItem { $load_more = ''; $load_more_title = ''; if ($toplevel_comments_total > $total_children) { - if (is_site_admin()) { - // provide a load more comments button - $load_more = t('Load more'); - $load_more_title = sprintf(t('Load more of %d replies'), $toplevel_comments_total); - - } + // provide a load more comments button + $load_more = t('Load more'); + $load_more_title = sprintf(t('Load more of %d replies'), $toplevel_comments_total); } $tmp_item = array( diff --git a/view/js/main.js b/view/js/main.js index 6d79f9092..0a5401e15 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1293,12 +1293,6 @@ function justifyPhotosAjax(id) { } function request(id, mid, verb, parent, uuid) { - - if (!id) { - console.log('load_more'); - return; - } - const loading = document.getElementById('like-rotator-' + id); loading.style.display = 'block'; diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 3bca23df8..561680f0b 100644 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -207,9 +207,6 @@ <div class="dropdown-divider"></div> <a class="dropdown-item" href="dreport/{{$item.dreport_link}}">{{$item.dreport}}</a> {{/if}} - {{if $item.load_more}} - <a class="dropdown-item conversation-load-more" title="{{$item.load_more_title}}" href="#" onclick="request(''); return false;">{{$item.load_more}}</a> - {{/if}} {{if $item.settings}} <div class="dropdown-divider"></div> <a class="dropdown-item conversation-settings-link" href="#" data-bs-toggle="modal" data-bs-target="#conversation_settings">{{$item.settings}}</a> |