Fix for timeline insert on primary AJAX post: only insert on the first, primary timeline. Don't insert on sub-timelines for replies!

This commit is contained in:
Brion Vibber 2011-03-01 15:24:44 -08:00
parent a7005f3975
commit c6521db620
2 changed files with 2 additions and 2 deletions

View File

@ -450,7 +450,7 @@ var SN = { // StatusNet
else {
// New notice post was successful. If on our timeline, show it!
var notice = document._importNode($('li', data)[0], true);
var notices = $('#notices_primary .notices');
var notices = $('#notices_primary .notices:first');
if (notices.length > 0 && SN.U.belongsOnTimeline(notice)) {
if ($('#'+notice.id).length === 0) {
var notice_irt_value = $('#'+SN.C.S.NoticeInReplyTo).val();

2
js/util.min.js vendored

File diff suppressed because one or more lines are too long