From: rabuzarus Date: Sun, 3 Feb 2019 15:26:13 +0000 (+0100) Subject: attachment preview: some small corrections X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba03ec857ae1b83e82819eb883f4c99aa6a739ca;p=friendica.git attachment preview: some small corrections --- diff --git a/mod/parse_url.php b/mod/parse_url.php index c0a0a1336a..3b2522ab12 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 763386f2cf..f2b65a1689 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 c26264c4ac..69ea1e64f9 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 08ed6f2215..d55e5098a2 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;