From ba03ec857ae1b83e82819eb883f4c99aa6a739ca Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Sun, 3 Feb 2019 16:26:13 +0100 Subject: [PATCH] attachment preview: some small corrections --- mod/parse_url.php | 2 +- view/js/linkPreview.js | 6 +++--- view/theme/frio/css/style.css | 2 +- view/theme/frio/js/jot.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mod/parse_url.php b/mod/parse_url.php index c0a0a1336..3b2522ab1 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -46,7 +46,7 @@ function parse_url_content(App $a) } } - if (isset($_GET['dataType']) && $_GET['dataType'] == 'json') { + if (isset($_GET['format']) && $_GET['format'] == 'json') { $format = 'json'; } diff --git a/view/js/linkPreview.js b/view/js/linkPreview.js index 763386f2c..f2b65a168 100644 --- a/view/js/linkPreview.js +++ b/view/js/linkPreview.js @@ -3,8 +3,8 @@ * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * - * Restructured from Rabzuarus (https://friendica.kommune4.de/profile/rabuzarus) - * to use it for the decental social network Friendica (https://friendi.ca). + * Restructured by Rabzuarus (https://friendica.kommune4.de/profile/rabuzarus) + * to use it in the decentralized social network Friendica (https://friendi.ca). * * Version: 1.4.0 */ @@ -180,7 +180,7 @@ * @returns {void} */ var getContentData = function(binurl, callback) { - $.get('parse_url?binurl='+ binurl + '&dataType=json', function (answer) { + $.get('parse_url?binurl='+ binurl + '&format=json', function (answer) { obj = sanitizeInputData(answer); // Put the data into a cache diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index c26264c4a..69ea1e64f 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1408,7 +1408,7 @@ textarea#profile-jot-text:focus + #preview_profile-jot-text { padding: 10px 15px; } -/* ACL +/* ACL */ /*#jot-modal-body { height: auto; max-height: calc(100vh - 130px); diff --git a/view/theme/frio/js/jot.js b/view/theme/frio/js/jot.js index 08ed6f221..d55e5098a 100644 --- a/view/theme/frio/js/jot.js +++ b/view/theme/frio/js/jot.js @@ -1,4 +1,4 @@ -// We apptend the linkPreview to a global Variable to make linkPreview +// We append the linkPreview to a global Variable to make linkPreview // accessable on other places. Note: search on other places before you // delete or move the variable. var linkPreview;