[aur-dev] [PATCH] Only show "last edited" to logged in users

Lukas Fleischer lfleischer at archlinux.org
Sat Dec 12 12:06:55 UTC 2015


Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/template/pkg_comments.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index 2046364..4f3ee3d 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -25,7 +25,7 @@ if (!isset($count)) {
 			$heading = __('Anonymous comment on %s', $date_fmtd);
 		}
 
-		if ($row['EditedTS']) {
+		if ($uid && $row['EditedTS']) {
 			$date_fmtd = gmdate('Y-m-d H:i', $row['EditedTS']);
 			$heading .= ' <span class="edited">(';
 			if ($row['DelUsersID']) {
-- 
2.6.4


More information about the aur-dev mailing list