From a76dd1268f8445d7bee4643c92b94a7322a0ec1c Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Mon, 19 Aug 2019 22:40:12 +0200 Subject: [PATCH] Don't print entire note when posting or commenting --- jan-pona-mute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jan-pona-mute.py b/jan-pona-mute.py index 9885850..898e2cb 100755 --- a/jan-pona-mute.py +++ b/jan-pona-mute.py @@ -463,8 +463,8 @@ Use the 'edit' command to edit notes.""" return notes = self.get_notes() if line in notes: - line = self.read_note(line) print("Using note '%s'" % line) + line = self.read_note(line) comment = self.post.comment(line) self.post.comments.add(comment) self.undo.append("delete comment %s from %s" % (comment.id, self.post.id)) @@ -487,8 +487,8 @@ Use the 'edit' command to edit notes.""" self.home = diaspy.streams.Stream(self.connection) notes = self.get_notes() if line in notes: - line = self.read_note(line) print("Using note '%s'" % line) + line = self.read_note(line) self.post = self.home.post(text = line) self.post_cache[self.post.id] = self.post self.undo.append("delete post %s" % self.post.id) -- 2.25.1