]> git.mxchange.org Git - friendica.git/blobdiff - view/js/filebrowser.js
Issue 11880: Provide "alt" description from uploaded file
[friendica.git] / view / js / filebrowser.js
index 4546ed8ffccd250bc8570eadb5d952a51ee1294f..24b4d904fde383a5c2f541ada8bbca514fdfac33 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Filebrowser - Friendica Communications Server
  *
- * Copyright (c) 2010-2015 the Friendica Project
+ * Copyright (c) 2010-2021, the Friendica project
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -85,7 +85,7 @@ var FileBrowser = {
 
                        var embed = "";
                        if (FileBrowser.type == "image") {
-                               embed = "[url="+this.dataset.link+"][img="+this.dataset.img+"][/img][/url]";
+                               embed = "[url="+this.dataset.link+"][img="+this.dataset.img+"]"+this.dataset.alt+"[/img][/url]";
                        }
                        if (FileBrowser.type=="file") {
                                // attachment links are "baseurl/attach/id"; we need id