mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can delete comments
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:comunic/models/like_element.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:comunic/utils/account_utils.dart' as account;
|
||||
|
||||
/// Comments
|
||||
///
|
||||
@ -37,4 +38,6 @@ class Comment implements LikeElement {
|
||||
bool get hasContent => content != null && content.length > 0;
|
||||
|
||||
bool get hasImage => imageURL != null;
|
||||
|
||||
bool get isOwner => userID == account.userID();
|
||||
}
|
||||
|
Reference in New Issue
Block a user