File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -217,13 +217,13 @@ class PuterHomepageService extends BaseService {
217217 const bundled = env != 'dev' || use_bundled_gui ;
218218
219219 // check if social media image is a valid absolute URL
220- let is_social_media_image_valid = true ;
221- if ( social_media_image && ! is_valid_url ( social_media_image ) ) {
220+ let is_social_media_image_valid = ! ! social_media_image ;
221+ if ( is_social_media_image_valid && ! is_valid_url ( social_media_image ) ) {
222222 is_social_media_image_valid = false ;
223223 }
224224
225225 // check if social media image ends with a valid image extension
226- if ( social_media_image && ! / \. ( p n g | j p g | j p e g | g i f | w e b p ) $ / . test ( social_media_image . toLowerCase ( ) ) ) {
226+ if ( is_social_media_image_valid && ! / \. ( p n g | j p g | j p e g | g i f | w e b p ) $ / . test ( social_media_image . toLowerCase ( ) ) ) {
227227 is_social_media_image_valid = false ;
228228 }
229229
You can’t perform that action at this time.
0 commit comments