v0.6.2 Bugfix: download and upload public images, comments in timeline
This commit is contained in:
parent
baccd64303
commit
d09a55bcd9
14 changed files with 200 additions and 145 deletions
|
@ -29,9 +29,11 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import QtQuick 2.9
|
||||
import QtQuick 2.15
|
||||
AnimatedImage {id:gif;
|
||||
width:toprow.width;
|
||||
cache:false
|
||||
smooth: false
|
||||
//property string mimetype:""
|
||||
fillMode: Image.PreserveAspectFit;
|
||||
onStatusChanged: {playing = (status == AnimatedImage.Ready)}
|
||||
|
|
|
@ -173,7 +173,13 @@ Rectangle{
|
|||
|
||||
function getOldNews(){
|
||||
var currentTime= new Date();
|
||||
try{var lastnews_id=newsModel.get(newsModel.count-1).newsitemobject.created_at;} catch(e){var lastnews_id=99999999999999 }
|
||||
var oldnewsitemobject=newsModel.get(newsModel.count-1).newsitemobject;
|
||||
try{ if(oldnewsitemobject.hasOwnProperty("lastcomment")){
|
||||
var lastnews_id=oldnewsitemobject.lastcomment.created_at;
|
||||
}else{
|
||||
var lastnews_id=oldnewsitemobject.created_at;
|
||||
}
|
||||
} catch(e){print(e);var lastnews_id=99999999999999 }
|
||||
var messagetype=0;
|
||||
switch(newsSwipeview.stacktype){
|
||||
case "Home":messagetype=0;break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue