File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -312,16 +312,20 @@ class Editor extends Component {
312312
313313 getImageURL ( item , background ) {
314314 let url ;
315- if ( item . thumbnail && this . props . attributes . thumb === 'auto' ) {
316- url = item . thumbnail ;
315+ if (
316+ item . thumbnail &&
317+ this . props . attributes . thumb === 'auto' &&
318+ item . thumbnail !== item . default_img
319+ ) {
320+ url = item . thumbnail . replace ( / h t t p : / g, 'https:' ) ;
317321 } else if ( this . props . attributes . default ) {
318322 url = this . props . attributes . default . url ;
323+ } else if ( item . default_img ) {
324+ url = item . default_img ;
319325 } else {
320326 url = window . feedzyjs . imagepath + 'feedzy.svg' ;
321327 }
322328
323- url = url . replace ( / h t t p : / g, 'https:' ) ;
324-
325329 if ( background ) {
326330 url = 'url("' + url + '")' ;
327331 }
You can’t perform that action at this time.
0 commit comments