mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix an issue with web links
This commit is contained in:
		@@ -74,6 +74,8 @@ class Post implements LikeElement {
 | 
			
		||||
 | 
			
		||||
  bool get canUpdate => access == UserAccessLevels.FULL;
 | 
			
		||||
 | 
			
		||||
  bool get hasLinkImage => linkImage != null;
 | 
			
		||||
 | 
			
		||||
  bool get canDelete =>
 | 
			
		||||
      access == UserAccessLevels.FULL ||
 | 
			
		||||
      access == UserAccessLevels.INTERMEDIATE;
 | 
			
		||||
 
 | 
			
		||||
@@ -263,11 +263,16 @@ class _PostTileState extends State<PostTile> {
 | 
			
		||||
          children: <Widget>[
 | 
			
		||||
            Padding(
 | 
			
		||||
              padding: const EdgeInsets.only(right: 8.0),
 | 
			
		||||
              child: NetworkImageWidget(
 | 
			
		||||
                url: widget.post.linkImage,
 | 
			
		||||
                width: 70,
 | 
			
		||||
                roundedEdges: false,
 | 
			
		||||
              ),
 | 
			
		||||
              child: widget.post.hasLinkImage
 | 
			
		||||
                  ? NetworkImageWidget(
 | 
			
		||||
                      url: widget.post.linkImage,
 | 
			
		||||
                      width: 70,
 | 
			
		||||
                      roundedEdges: false,
 | 
			
		||||
                    )
 | 
			
		||||
                  : Icon(
 | 
			
		||||
                      Icons.link,
 | 
			
		||||
                      size: 70,
 | 
			
		||||
                    ),
 | 
			
		||||
            ),
 | 
			
		||||
            Flexible(
 | 
			
		||||
              child: Column(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user