more livefeed tweaks - put the URL first for consistency

This commit is contained in:
Shish 2012-06-22 20:04:12 +01:00
parent 6181d59975
commit 16f1c06734

View file

@ -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) {