liveupdate: only modify existing conversations if not page1

This commit is contained in:
friendica 2011-12-13 15:21:11 -08:00
parent ee4975f1cd
commit 4f2d516920
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php'); require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1193' ); define ( 'FRIENDICA_VERSION', '2.3.1194' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1111 ); define ( 'DB_UPDATE_VERSION', 1111 );

View File

@ -256,7 +256,8 @@
$('.wall-item-outside-wrapper',data).each(function() { $('.wall-item-outside-wrapper',data).each(function() {
var ident = $(this).attr('id'); var ident = $(this).attr('id');
if($('#' + ident).length == 0) { // If not on page 1, only add new conversation items to existing conversations on this page
if($('#' + ident).length == 0 && (profile_page == 1 || prev != 'live-' + src)) {
$('img',this).each(function() { $('img',this).each(function() {
$(this).attr('src',$(this).attr('dst')); $(this).attr('src',$(this).attr('dst'));
}); });