diff --git a/src/General/Build.coffee b/src/General/Build.coffee index 768db0831..2cccfec6c 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -38,6 +38,7 @@ Build = postID: data.no threadID: data.resto or data.no boardID: boardID + isReply: !!data.resto # thread status isSticky: !!data.sticky isClosed: !!data.closed @@ -98,7 +99,6 @@ Build = ### {postID, threadID, boardID, file} = o {subject, email, name, tripcode, capcode, uniqueID, flagCode, flag, dateUTC, dateText, commentHTML} = o.info - isOP = postID is threadID {staticPath, gifIcon} = Build ### Post Info ### @@ -134,7 +134,7 @@ Build = ### Whole Post ### - postClass = if isOP then 'op' else 'reply' + postClass = if o.isReply then 'reply' else 'op' wholePost = <%= importHTML('Build/Post') %> diff --git a/src/General/html/Build/Post.html b/src/General/html/Build/Post.html index 4ac9ff192..bc9cf1852 100644 --- a/src/General/html/Build/Post.html +++ b/src/General/html/Build/Post.html @@ -1,5 +1,5 @@ -?{!isOP}{
>>
} +?{o.isReply}{
>>
}
- ?{isOP}{&{fileBlock}&{postInfo}}{&{postInfo}&{fileBlock}} + ?{o.isReply}{&{postInfo}&{fileBlock}}{&{fileBlock}&{postInfo}}
&{commentHTML}
diff --git a/src/General/html/Build/PostInfo.html b/src/General/html/Build/PostInfo.html index 6de0b69ff..75f7c383d 100644 --- a/src/General/html/Build/PostInfo.html +++ b/src/General/html/Build/PostInfo.html @@ -1,24 +1,24 @@
- ?{isOP || boardID === "f" || subject}{${subject || ""} } + ?{!o.isReply || boardID === "f" || subject}{${subject || ""} } ?{email}{} ${name} ?{tripcode}{ ${tripcode}} ?{capcode}{ ## ${capcode}} ?{email}{} - ?{boardID === "f" && isOP || capcode}{}{ } + ?{boardID === "f" && !o.isReply || capcode}{}{ } ?{capcode}{ ${capcodeUC} Icon} ?{uniqueID && !capcode}{ (ID: ${uniqueID})} ?{flagCode}{ } ${dateText} - + No. ${postID} ?{o.isSticky}{ Sticky} ?{o.isClosed && !o.isArchived}{ Closed} ?{o.isArchived}{ Archived} - ?{isOP && g.VIEW === "index"}{   [Reply]} + ?{!o.isReply && g.VIEW === "index"}{   [Reply]}
diff --git a/src/General/lib/fetcher.class b/src/General/lib/fetcher.class index a8cd461c9..890bfaf28 100644 --- a/src/General/lib/fetcher.class +++ b/src/General/lib/fetcher.class @@ -129,6 +129,7 @@ class Fetcher postID: @postID threadID: @threadID boardID: @boardID + isReply: @postID isnt @threadID o.info = subject: data.title email: data.email