support upload of files and attachments into comments. This has some repercussions when it comes to post permissions since the commenter will not know the distribution of the post. Basically the files will be uploaded with the commenter's default ACL. Most of the time this will do the right thing.

This commit is contained in:
zotlabs
2017-08-08 22:55:47 -07:00
parent a7a73a5150
commit ca11d7b9a7
5 changed files with 49 additions and 0 deletions

View File

@@ -132,6 +132,19 @@ function inserteditortag(BBcode, id) {
return true;
}
function insertCommentAttach(comment,id) {
activeCommentID = id;
activeCommentText = comment;
$('body').css('cursor', 'wait');
$('#invisible-comment-upload').trigger('click');
return false;
}
function insertCommentURL(comment, id) {
reply = prompt(aStr.linkurl);
if(reply && reply.length) {