forked from lubuwest/Friendiqa
v.0.3.4
This commit is contained in:
parent
12ac44fb70
commit
aca94a5393
98 changed files with 1061 additions and 152 deletions
|
@ -1,5 +1,5 @@
|
|||
// This file is part of Friendiqa
|
||||
// https://github.com/lubuwest/Friendiqa
|
||||
// https://git.friendi.ca/lubuwest/Friendiqa
|
||||
// Copyright (C) 2017 Marco R. <thomasschmidt45@gmx.net>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
function findend (text, startpos) {
|
||||
var indexOf = text.substring(startpos || 0).search(/\s/);
|
||||
return (indexOf >= 0) ? (indexOf + (startpos || 0)) : indexOf;
|
||||
return (indexOf >= 0) ? (indexOf + (startpos || 0)) : text.length;
|
||||
}
|
||||
|
||||
|
||||
|
@ -135,6 +135,20 @@ else{
|
|||
if ((attachmentList.length==0) || (attachmentList[attachmentList.length-1].url!=ptvideohelper.url)){attachmentList.push(ptvideohelper)}
|
||||
}
|
||||
}
|
||||
// if (newsitemobject.text.indexOf(".html")>-1){
|
||||
// //print("message "+msg.options.showWebsiteForLinks);
|
||||
// if (msg.options.showWebsiteForLinks!="false"){
|
||||
// var linkhelper={mimetype:"text/html"}
|
||||
// var linktext=newsitemobject.text;
|
||||
// while (linktext.indexOf(".html")>-1){
|
||||
// var linkhelperstringposition=linktext.indexOf(".html");
|
||||
// var linkposend=findend(linktext,linkhelperstringposition);
|
||||
// linkhelper.url=linktext.substring(linktext.lastIndexOf("http",linkhelperstringposition),linkposend);
|
||||
// linktext=linktext.substring(linkhelperstringposition+5,linktext.length)
|
||||
// if ((attachmentList.length==0) || (attachmentList[attachmentList.length-1].url!=linkhelper.url)){attachmentList.push(linkhelper)}
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
newsitemobject.attachmentList=attachmentList;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue