diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index 3b13fa2d9..1625c4da3 100644 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -83,9 +83,6 @@ ThreadUpdater = ThreadUpdater.setInterval() - # Update immediately on /f/ to add files to replies. - ThreadUpdater.update() if @board.ID is 'f' - ### http://freesound.org/people/pierrecartoons1979/sounds/90112/ cc-by-nc-3.0 @@ -282,13 +279,6 @@ ThreadUpdater = index.push ID files.push ID if postObject.fsize - # Add files to replies on /f/. - if board.ID is 'f' and postObject.fsize and (post = thread.posts[ID]) and not post.file - node = Build.postFromObject postObject, board.ID - $.after post.nodes.info, $('.file', node) - post.parseFile() - Post.callbacks.execute post, ['Filter', 'File Info Formatting', 'Fappe Tyme', 'Sauce'] - # Insert new posts, not older ones. continue if ID <= lastPost diff --git a/src/Posting/QR.post.coffee b/src/Posting/QR.post.coffee index 667009ce4..725576c89 100644 --- a/src/Posting/QR.post.coffee +++ b/src/Posting/QR.post.coffee @@ -122,7 +122,6 @@ QR.post = class when 'thread' (if @thread isnt 'new' then $.addClass else $.rmClass) QR.nodes.el, 'reply-to-thread' QR.status() - @updateFlashURL() when 'com' @updateComment() # Disable auto-posting if you're typing in the first post @@ -133,7 +132,6 @@ QR.post = class return unless @file @saveFilename() @updateFilename() - @updateFlashURL() when 'name' QR.persona.set @ @@ -205,7 +203,6 @@ QR.post = class @showFileData() else @updateFilename() - @updateFlashURL() @nodes.el.style.backgroundImage = null unless @file.type in QR.mimeTypes @fileError 'Unsupported file type.' @@ -305,7 +302,6 @@ QR.post = class @nodes.el.style.backgroundImage = null $.rmClass @nodes.el, 'has-file' @showFileData() - @updateFlashURL() URL.revokeObjectURL @URL @dismissErrors (error) -> $.hasClass error, 'file-error' @@ -336,25 +332,6 @@ QR.post = class QR.nodes.fileSubmit.removeAttribute 'data-source' QR.nodes.spoiler.checked = @spoiler - updateFlashURL: -> - return unless g.BOARD.ID is 'f' - if @thread is 'new' or !@file - url = '' - else - url = @file.newName - url = url.replace(/"/g, '%22') if $.engine in ['blink', 'webkit'] - url = url - .replace(/[\t\n\f\r \xa0\u200B\u2029\u3000]+/g, ' ') - .replace(/(^ | $)/g, '') - .replace(/\.[0-9A-Za-z]+$/, '') - url = "https://i.4cdn.org/f/#{encodeURIComponent E url}.swf\n" - oldURL = @flashURL or '' - if url isnt oldURL - com = @com or '' - if com[...oldURL.length] is oldURL - @setComment url + com[oldURL.length..] - @flashURL = url - pasteText: (file) -> @pasting = true reader = new FileReader()