From 1b18be671523c8ea85ecab8e5e1c5025e91c53e0 Mon Sep 17 00:00:00 2001
From: Michael <heluecht@pirati.ca>
Date: Fri, 12 Oct 2018 18:47:32 +0000
Subject: [PATCH] The virtuel fields for the diaspora signatures have to be
 removed at any time

---
 src/Model/Item.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Model/Item.php b/src/Model/Item.php
index c0c67352e4..fe7757a46f 100644
--- a/src/Model/Item.php
+++ b/src/Model/Item.php
@@ -1292,15 +1292,15 @@ class Item extends BaseObject
 		if (x($item, 'dsprsig')) {
 			$encoded_signature = $item['dsprsig'];
 			$dsprsig = json_decode(base64_decode($item['dsprsig']));
-			unset($item['dsprsig']);
 		}
+		unset($item['dsprsig']);
 
 		if (!empty($item['diaspora_signed_text'])) {
 			$diaspora_signed_text = $item['diaspora_signed_text'];
-			unset($item['diaspora_signed_text']);
 		} else {
 			$diaspora_signed_text = '';
 		}
+		unset($item['diaspora_signed_text']);
 
 		// Converting the plink
 		/// @TODO Check if this is really still needed
-- 
2.39.5