From 16f1c06734577aa5f242e54917961c09868c59b4 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 22 Jun 2012 20:04:12 +0100 Subject: [PATCH] more livefeed tweaks - put the URL first for consistency --- ext/livefeed/main.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/ext/livefeed/main.php b/ext/livefeed/main.php index 0de70e8f..9f769b63 100644 --- a/ext/livefeed/main.php +++ b/ext/livefeed/main.php @@ -20,13 +20,24 @@ class LiveFeed extends Extension { } public function onImageAddition($event) { - $this->msg("Image posted: ".make_http(make_link("post/view/".$event->image->id))); - #$this->msg("- tagged ".$event->image->get_tag_list()); + $this->msg( + make_http(make_link("post/view/".$event->image->id))." - ". + "new post by ".$event->user->name + ); + } + + public function onTagSet($event) { + $this->msg( + make_http(make_link("post/view/".$event->image->id))." - ". + "tags set to: ".Tag::implode($event->tags) + ); } public function onCommentPosting($event) { - $this->msg("Comment posted on ".make_http(make_link("post/view/".$event->image_id))." :"); - $this->msg("- {$event->user->name}: {$event->comment}"); + $this->msg( + make_http(make_link("post/view/".$event->image_id))." - ". + $event->user->name . ": " . str_replace("\n", " ", $event->comment) + ); } public function onImageInfoSet($event) {