From 6a2b382be405861db97e3ab9b4e5171afcbeea09 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 29 May 2014 10:31:01 -0700 Subject: [PATCH] Fix Title Link Fix zixaphir/appchan-x#733, Fix zixaphir/appchan-x#732 --- LICENSE | 2 +- builds/4chan-X.user.js | 4 ++-- builds/crx/script.js | 4 ++-- src/Linkification/Linkify.coffee | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index 35f60cbc2..dbe46531e 100755 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.7.33 - 2014-05-27 +* 4chan X - Version 1.7.33 - 2014-05-29 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 560bf5349..408883484 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.7.33 - 2014-05-27 +* 4chan X - Version 1.7.33 - 2014-05-29 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -8818,7 +8818,7 @@ ExpandComment.callbacks.push(this.node); } if (Conf['Embedding'] || Conf['Link Title']) { - this.embedProcess = Function('link', "var data = this.services(link);\nif (data) {" + ((Conf['Embedding'] ? 'this.embed(data); ' : '') + (Conf['Link Title'] ? 'data.push(post); this.title(data);' : '')) + "}"); + this.embedProcess = Function('link', 'post', "var data = this.services(link);\nif (data) {" + ((Conf['Embedding'] ? 'this.embed(data); ' : '') + (Conf['Link Title'] ? 'data.push(post); this.title(data);' : '')) + "}"); } return Post.callbacks.push({ name: 'Linkify', diff --git a/builds/crx/script.js b/builds/crx/script.js index cc24716e7..901610e8a 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.7.33 - 2014-05-27 +* 4chan X - Version 1.7.33 - 2014-05-29 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -8834,7 +8834,7 @@ ExpandComment.callbacks.push(this.node); } if (Conf['Embedding'] || Conf['Link Title']) { - this.embedProcess = Function('link', "var data = this.services(link);\nif (data) {" + ((Conf['Embedding'] ? 'this.embed(data); ' : '') + (Conf['Link Title'] ? 'data.push(post); this.title(data);' : '')) + "}"); + this.embedProcess = Function('link', 'post', "var data = this.services(link);\nif (data) {" + ((Conf['Embedding'] ? 'this.embed(data); ' : '') + (Conf['Link Title'] ? 'data.push(post); this.title(data);' : '')) + "}"); } return Post.callbacks.push({ name: 'Linkify', diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index c6a5754a0..e65f42389 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -9,7 +9,7 @@ Linkify = ExpandComment.callbacks.push @node if Conf['Embedding'] or Conf['Link Title'] - @embedProcess = Function 'link', + @embedProcess = Function 'link', 'post', """ var data = this.services(link); if (data) {#{