]> git.mxchange.org Git - friendica.git/commitdiff
The virtuel fields for the diaspora signatures have to be removed at any time
authorMichael <heluecht@pirati.ca>
Fri, 12 Oct 2018 18:47:32 +0000 (18:47 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 12 Oct 2018 18:47:32 +0000 (18:47 +0000)
src/Model/Item.php

index c0c67352e4ddbe6884189ce0fa8772c127a3aa34..fe7757a46f5bb65e8185316c01c10d4b3a4c158a 100644 (file)
@@ -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