We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 5fd08b79 authored by Evan Prodromou's avatar Evan Prodromou

show thumbnails even for links that arent enclosures

parent f0ea6299
......@@ -58,11 +58,20 @@ class InlineAttachmentList extends AttachmentList
class InlineAttachmentListItem extends AttachmentListItem
protected $thumb;
function show()
if ($this->attachment->isEnclosure()) {
$this->thumb = parent::getThumbInfo();
if (!empty($this->thumb)) {
function getThumbInfo()
return $this->thumb;
function showLink() {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment