[aur-dev] [PATCH] Rerender package comments after editing

Lukas Fleischer lfleischer at archlinux.org
Sun Apr 23 19:23:45 UTC 2017


Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/lib/pkgbasefuncs.inc.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index 3e78309..ff1bc90 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -1041,6 +1041,9 @@ function pkgbase_edit_comment($comment) {
 		$q.= "EditedTS = " . strval(time()) . " ";
 		$q.= "WHERE ID = ".intval($comment_id);
 		$dbh->exec($q);
+
+		render_comment($comment_id);
+
 		return array(true, __("Comment has been edited."));
 	} else {
 		return array(false, __("You are not allowed to edit this comment."));
-- 
2.12.2


More information about the aur-dev mailing list