Remove QuoteMarkers.cache
If posts couldn't die...
This commit is contained in:
parent
1fc83f9b95
commit
000ca6f9ce
@ -5397,15 +5397,11 @@
|
|||||||
parseQuotelink(this, quotelink, !!this.isClone);
|
parseQuotelink(this, quotelink, !!this.isClone);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cache: {},
|
|
||||||
parseQuotelink: function(post, quotelink, mayReset, customText) {
|
parseQuotelink: function(post, quotelink, mayReset, customText) {
|
||||||
var board, boardID, cache, markers, postID, text, thread, threadID, _ref, _ref1, _ref2;
|
var board, boardID, markers, postID, text, thread, threadID, _ref, _ref1, _ref2;
|
||||||
_ref = post.isClone ? post.context : post, board = _ref.board, thread = _ref.thread;
|
_ref = post.isClone ? post.context : post, board = _ref.board, thread = _ref.thread;
|
||||||
markers = [];
|
markers = [];
|
||||||
_ref1 = Get.postDataFromLink(quotelink), boardID = _ref1.boardID, threadID = _ref1.threadID, postID = _ref1.postID;
|
_ref1 = Get.postDataFromLink(quotelink), boardID = _ref1.boardID, threadID = _ref1.threadID, postID = _ref1.postID;
|
||||||
if (cache = QuoteMarkers.cache[postID]) {
|
|
||||||
quotelink.textContent = cache;
|
|
||||||
}
|
|
||||||
if ((_ref2 = QR.db) != null ? _ref2.get({
|
if ((_ref2 = QR.db) != null ? _ref2.get({
|
||||||
boardID: boardID,
|
boardID: boardID,
|
||||||
threadID: threadID,
|
threadID: threadID,
|
||||||
|
|||||||
@ -5449,15 +5449,11 @@
|
|||||||
parseQuotelink(this, quotelink, !!this.isClone);
|
parseQuotelink(this, quotelink, !!this.isClone);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cache: {},
|
|
||||||
parseQuotelink: function(post, quotelink, mayReset, customText) {
|
parseQuotelink: function(post, quotelink, mayReset, customText) {
|
||||||
var board, boardID, cache, markers, postID, text, thread, threadID, _ref, _ref1, _ref2;
|
var board, boardID, markers, postID, text, thread, threadID, _ref, _ref1, _ref2;
|
||||||
_ref = post.isClone ? post.context : post, board = _ref.board, thread = _ref.thread;
|
_ref = post.isClone ? post.context : post, board = _ref.board, thread = _ref.thread;
|
||||||
markers = [];
|
markers = [];
|
||||||
_ref1 = Get.postDataFromLink(quotelink), boardID = _ref1.boardID, threadID = _ref1.threadID, postID = _ref1.postID;
|
_ref1 = Get.postDataFromLink(quotelink), boardID = _ref1.boardID, threadID = _ref1.threadID, postID = _ref1.postID;
|
||||||
if (cache = QuoteMarkers.cache[postID]) {
|
|
||||||
quotelink.textContent = cache;
|
|
||||||
}
|
|
||||||
if ((_ref2 = QR.db) != null ? _ref2.get({
|
if ((_ref2 = QR.db) != null ? _ref2.get({
|
||||||
boardID: boardID,
|
boardID: boardID,
|
||||||
threadID: threadID,
|
threadID: threadID,
|
||||||
|
|||||||
@ -11,16 +11,11 @@ QuoteMarkers =
|
|||||||
for quotelink in @nodes.quotelinks
|
for quotelink in @nodes.quotelinks
|
||||||
parseQuotelink @, quotelink, !!@isClone
|
parseQuotelink @, quotelink, !!@isClone
|
||||||
return
|
return
|
||||||
|
|
||||||
cache: {}
|
|
||||||
|
|
||||||
parseQuotelink: (post, quotelink, mayReset, customText) ->
|
parseQuotelink: (post, quotelink, mayReset, customText) ->
|
||||||
{board, thread} = if post.isClone then post.context else post
|
{board, thread} = if post.isClone then post.context else post
|
||||||
markers = []
|
markers = []
|
||||||
{boardID, threadID, postID} = Get.postDataFromLink quotelink
|
{boardID, threadID, postID} = Get.postDataFromLink quotelink
|
||||||
|
|
||||||
if cache = QuoteMarkers.cache[postID]
|
|
||||||
quotelink.textContent = cache
|
|
||||||
|
|
||||||
if QR.db?.get {boardID, threadID, postID}
|
if QR.db?.get {boardID, threadID, postID}
|
||||||
markers.push 'You'
|
markers.push 'You'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user