update keep alive filter
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
library;
|
||||
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:worker/core/constants/api_constants.dart';
|
||||
import 'package:worker/features/news/domain/entities/news_article.dart';
|
||||
|
||||
part 'blog_post_model.g.dart';
|
||||
@@ -97,11 +98,11 @@ class BlogPostModel {
|
||||
if (metaImage != null && metaImage!.isNotEmpty) {
|
||||
// If meta_image starts with /, prepend the base URL
|
||||
if (metaImage!.startsWith('/')) {
|
||||
imageUrl = 'https://land.dbiz.com$metaImage';
|
||||
imageUrl = '${ApiConstants.baseUrl}$metaImage';
|
||||
} else if (metaImage!.startsWith('http')) {
|
||||
imageUrl = metaImage!;
|
||||
} else {
|
||||
imageUrl = 'https://land.dbiz.com/$metaImage';
|
||||
imageUrl = '${ApiConstants.baseUrl}/$metaImage';
|
||||
}
|
||||
} else {
|
||||
imageUrl = 'https://via.placeholder.com/400x300?text=${Uri.encodeComponent(title)}';
|
||||
|
||||
Reference in New Issue
Block a user