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:
parent
a7005f3975
commit
c6521db620
|
@ -450,7 +450,7 @@ var SN = { // StatusNet
|
||||||
else {
|
else {
|
||||||
// New notice post was successful. If on our timeline, show it!
|
// New notice post was successful. If on our timeline, show it!
|
||||||
var notice = document._importNode($('li', data)[0], true);
|
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 (notices.length > 0 && SN.U.belongsOnTimeline(notice)) {
|
||||||
if ($('#'+notice.id).length === 0) {
|
if ($('#'+notice.id).length === 0) {
|
||||||
var notice_irt_value = $('#'+SN.C.S.NoticeInReplyTo).val();
|
var notice_irt_value = $('#'+SN.C.S.NoticeInReplyTo).val();
|
||||||
|
|
2
js/util.min.js
vendored
2
js/util.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user