the rest of the backend for supporting scroll-to-comment from notifications. We still need an ajax handler as fragments are evaluated before content is loaded.
This commit is contained in:
parent
dca4db9d4d
commit
c04c57ea0f
@ -115,6 +115,9 @@ class Enotify {
|
||||
// logger("notification: params = " . print_r($params, true), LOGGER_DEBUG);
|
||||
|
||||
$itemlink = $params['link'];
|
||||
if($params['item']['id'])
|
||||
$itemlink .= '#item_' . $params['item']['id'];
|
||||
|
||||
|
||||
// ignore like/unlike activity on posts - they probably require a separate notification preference
|
||||
|
||||
|
@ -412,6 +412,9 @@ class ThreadItem {
|
||||
if($visible_comments === false)
|
||||
$visible_comments = 3;
|
||||
|
||||
if(in_array(\App::$module,['display','update_display']))
|
||||
$visible_comments = 99999;
|
||||
|
||||
if(($this->get_display_mode() === 'normal') && ($nb_children > 0)) {
|
||||
foreach($children as $child) {
|
||||
$result['children'][] = $child->get_template_data($conv_responses, $thread_level + 1);
|
||||
|
@ -922,7 +922,9 @@ class Item extends \Zotlabs\Web\Controller {
|
||||
$post = item_store($datarray,$execflag);
|
||||
|
||||
$post_id = $post['item_id'];
|
||||
|
||||
|
||||
$datarray = $post['item'];
|
||||
|
||||
if($post_id) {
|
||||
logger('mod_item: saved item ' . $post_id);
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
<div id="thread-wrapper-{{$item.id}}" class="thread-wrapper{{if $item.toplevel}} {{$item.toplevel}} generic-content-wrapper h-entry {{else}} u-comment h-cite {{/if}}">
|
||||
<a name="{{$item.id}}" ></a>
|
||||
<a name="item_{{$item.id}}" ></a>
|
||||
<div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}" id="wall-item-outside-wrapper-{{$item.id}}" >
|
||||
<div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" style="clear:both;">
|
||||
{{if $item.photo}}
|
||||
|
Reference in New Issue
Block a user