]> git.mxchange.org Git - friendica.git/blobdiff - view/js/linkPreview.js
Merge pull request #11455 from annando/update-avatar
[friendica.git] / view / js / linkPreview.js
index f7278ce5b20fd2fe0fcb39d1d9e47b76d382bd23..293020bc820cde6ebc9c3faa268c9a55c8186362 100644 (file)
                 * @returns {void}
                 */
                var getContentData = function(binurl, callback) {
-                       $.get('parse_url?binurl='+ binurl + '&format=json', function (answer) {
+                       $.get('parseurl?binurl='+ binurl + '&format=json', function (answer) {
                                obj = sanitizeInputData(answer);
 
                                // Put the data into a cache
 
                        for (i = 0; i < images.length; i++) {
                                // For small preview images we use a smaller attachment format.
-                               ///@todo here we need to add a check for !Config::get('system', 'always_show_preview').
+                               ///@todo here we need to add a check for !DI::config()->get('system', 'always_show_preview').
                                if (images[i].width >= 500 && images[i].width >= images[i].height) {
                                                imageClass = 'attachment-image';
                                }