From 6e919ca52c72333941f92e4ff62d28534e598ce8 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 12 Dec 2019 14:17:16 -0800 Subject: [PATCH] clear comment storage when comment is cleared, change tactic to identify implied Create activities --- Zotlabs/Lib/ActivityStreams.php | 6 ++++-- boot.php | 2 +- view/js/main.js | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php index 47310efbc..1f04572e8 100644 --- a/Zotlabs/Lib/ActivityStreams.php +++ b/Zotlabs/Lib/ActivityStreams.php @@ -32,7 +32,8 @@ class ActivityStreams { public $sigok = false; public $recips = null; public $raw_recips = null; - + public $implied_create = false; + /** * @brief Constructor for ActivityStreams. * @@ -115,7 +116,8 @@ class ActivityStreams { // Implied create activity required by C2S specification if no object is present - if ($client && ! $this->obj) { + if (! $this->obj) { + $this->implied_create = true; $this->obj = $this->data; $this->type = 'Create'; if (! $this->actor) { diff --git a/boot.php b/boot.php index cd1de7c45..26e525a62 100755 --- a/boot.php +++ b/boot.php @@ -48,7 +48,7 @@ require_once('include/items.php'); -define ( 'STD_VERSION', '19.12.12' ); +define ( 'STD_VERSION', '19.12.13' ); define ( 'ZOT_REVISION', '6.0' ); define ( 'DB_UPDATE_VERSION', 1236 ); diff --git a/view/js/main.js b/view/js/main.js index 9b9a7c08e..f0a90c9be 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -172,6 +172,7 @@ function getSelectedText() { function commentCancel(commentId) { $("#comment-edit-text-" + commentId).val(''); + localStorage.removeItem("comment_body-" + commentId); } function handle_comment_form(e) {