kopia lustrzana https://gitlab.com/mysocialportal/relatica
12 wiersze
388 B
Dart
12 wiersze
388 B
Dart
import '../../models/link_preview_data.dart';
|
|
|
|
extension LinkPreviewExtension on LinkPreviewData {
|
|
String toBodyAttachment() {
|
|
if (selectedImageUrl.isEmpty) {
|
|
return "[attachment type='link' url='$link' title='$title']$description[/attachment]";
|
|
}
|
|
|
|
return "[attachment type='link' url='$link' title='$title' image='$selectedImageUrl']$description[/attachment]";
|
|
}
|
|
}
|