Use new flags argument to set isFetchedQuote.
This commit is contained in:
parent
64d8dce693
commit
72b7c8dc5e
@ -7,8 +7,7 @@ class Fetcher
|
|||||||
# 4chan X catalog data
|
# 4chan X catalog data
|
||||||
if (post = Index.replyData?["#{@boardID}.#{@postID}"]) and (thread = g.threads["#{@boardID}.#{@threadID}"])
|
if (post = Index.replyData?["#{@boardID}.#{@postID}"]) and (thread = g.threads["#{@boardID}.#{@threadID}"])
|
||||||
board = g.boards[@boardID]
|
board = g.boards[@boardID]
|
||||||
post = new Post g.SITE.Build.postFromObject(post, @boardID), thread, board
|
post = new Post g.SITE.Build.postFromObject(post, @boardID), thread, board, {isFetchedQuote: true}
|
||||||
post.isFetchedQuote = true
|
|
||||||
Main.callbackNodes 'Post', [post]
|
Main.callbackNodes 'Post', [post]
|
||||||
@insert post
|
@insert post
|
||||||
return
|
return
|
||||||
@ -99,8 +98,7 @@ class Fetcher
|
|||||||
new Board @boardID
|
new Board @boardID
|
||||||
thread = g.threads["#{@boardID}.#{@threadID}"] or
|
thread = g.threads["#{@boardID}.#{@threadID}"] or
|
||||||
new Thread @threadID, board
|
new Thread @threadID, board
|
||||||
post = new Post g.SITE.Build.postFromObject(post, @boardID), thread, board
|
post = new Post g.SITE.Build.postFromObject(post, @boardID), thread, board, {isFetchedQuote: true}
|
||||||
post.isFetchedQuote = true
|
|
||||||
Main.callbackNodes 'Post', [post]
|
Main.callbackNodes 'Post', [post]
|
||||||
@insert post
|
@insert post
|
||||||
|
|
||||||
@ -214,10 +212,9 @@ class Fetcher
|
|||||||
new Board @boardID
|
new Board @boardID
|
||||||
thread = g.threads["#{@boardID}.#{@threadID}"] or
|
thread = g.threads["#{@boardID}.#{@threadID}"] or
|
||||||
new Thread @threadID, board
|
new Thread @threadID, board
|
||||||
post = new Post g.SITE.Build.post(o), thread, board
|
post = new Post g.SITE.Build.post(o), thread, board, {isFetchedQuote: true}
|
||||||
post.kill()
|
post.kill()
|
||||||
post.file.thumbURL = o.file.thumbURL if post.file
|
post.file.thumbURL = o.file.thumbURL if post.file
|
||||||
post.isFetchedQuote = true
|
|
||||||
Main.callbackNodes 'Post', [post]
|
Main.callbackNodes 'Post', [post]
|
||||||
@insert post
|
@insert post
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user