arrow format to link images in logs
This commit is contained in:
parent
547c6d98da
commit
d00569431b
1 changed files with 2 additions and 1 deletions
|
@ -170,12 +170,13 @@ class MessageColumn extends Column
|
||||||
protected function scan_entities(string $line)
|
protected function scan_entities(string $line)
|
||||||
{
|
{
|
||||||
return preg_replace_callback("/Image #(\d+)/s", [$this, "link_image"], $line);
|
return preg_replace_callback("/Image #(\d+)/s", [$this, "link_image"], $line);
|
||||||
|
return preg_replace_callback("/>>(\d+)/s", [$this, "link_image"], $line);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function link_image($id)
|
protected function link_image($id)
|
||||||
{
|
{
|
||||||
$iid = int_escape($id[1]);
|
$iid = int_escape($id[1]);
|
||||||
return "<a href='".make_link("post/view/$iid")."'>Image #$iid</a>";
|
return "<a href='".make_link("post/view/$iid")."'>>>$iid</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue