more livefeed tweaks - put the URL first for consistency
This commit is contained in:
parent
6181d59975
commit
16f1c06734
@ -20,13 +20,24 @@ class LiveFeed extends Extension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onImageAddition($event) {
|
public function onImageAddition($event) {
|
||||||
$this->msg("Image posted: ".make_http(make_link("post/view/".$event->image->id)));
|
$this->msg(
|
||||||
#$this->msg("- tagged ".$event->image->get_tag_list());
|
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) {
|
public function onCommentPosting($event) {
|
||||||
$this->msg("Comment posted on ".make_http(make_link("post/view/".$event->image_id))." :");
|
$this->msg(
|
||||||
$this->msg("- {$event->user->name}: {$event->comment}");
|
make_http(make_link("post/view/".$event->image_id))." - ".
|
||||||
|
$event->user->name . ": " . str_replace("\n", " ", $event->comment)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onImageInfoSet($event) {
|
public function onImageInfoSet($event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user