File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -311,16 +311,22 @@ class Editor extends Component {
311311
312312 getImageURL ( item , background ) {
313313 let url ;
314- if ( item . thumbnail && this . props . attributes . thumb === 'auto' ) {
315- url = item . thumbnail ;
314+ window . console . log ( this . props . attributes ) ;
315+ window . console . log ( item ) ;
316+ if (
317+ item . thumbnail &&
318+ this . props . attributes . thumb === 'auto' &&
319+ item . thumbnail !== item . default_img
320+ ) {
321+ url = item . thumbnail . replace ( / h t t p : / g, 'https:' ) ;
316322 } else if ( this . props . attributes . default ) {
317323 url = this . props . attributes . default . url ;
324+ } else if ( item . default_img ) {
325+ url = item . default_img ;
318326 } else {
319327 url = window . feedzyjs . imagepath + 'feedzy.svg' ;
320328 }
321329
322- url = url . replace ( / h t t p : / g, 'https:' ) ;
323-
324330 if ( background ) {
325331 url = 'url("' + url + '")' ;
326332 }
You can’t perform that action at this time.
0 commit comments