activate timeago for pinned posts

This commit is contained in:
zotlabs 2020-03-17 21:30:25 -07:00
parent 651b6b79a2
commit 470dde6a84
2 changed files with 2 additions and 3 deletions

View file

@ -45,6 +45,7 @@ class Pinned {
$o = str_replace('<div id="threads-end">','<div id="pins-end">', $o);
$o = str_replace('<div id="conversation-end">','<div id="pin-widget-end">', $o);
$o = str_replace('class="thread-wrapper ','class="pin-thread-wrapper ', $o);
$o = str_replace('class="wall-item-ago','class="wall-item-ago pinned', $o);
// logger('output: ' . $o);
return '<hr>' . $o . '<hr>';

View file

@ -823,11 +823,9 @@ function updateConvItems(mode,data) {
}
}
// trigger the autotime function on all newly created content
$("> .pin-thread-wrapper .autotime",this).timeago();
$(".pinned .autotime").timeago();
$("> .wall-item-outside-wrapper .autotime, > .thread-wrapper .autotime",this).timeago();
$("> .shared_header .autotime",this).timeago();