From 69606293b3d6e3f58eff27e9cf564524600fb871 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 3 Nov 2018 21:48:57 -0600 Subject: [PATCH] Update Status model --- app/Status.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Status.php b/app/Status.php index a3a14dd38..9208bf8b4 100644 --- a/app/Status.php +++ b/app/Status.php @@ -52,7 +52,7 @@ class Status extends Model { $type = $this->viewType(); $is_nsfw = !$showNsfw ? $this->is_nsfw : false; - if ($this->media->count() == 0 || $is_nsfw || !in_array($type,['image', 'album'])) { + if ($this->media->count() == 0 || $is_nsfw || !in_array($type,['image', 'album', 'video'])) { return 'data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=='; } @@ -66,7 +66,7 @@ class Status extends Model $path = config('app.url')."/p/{$username}/{$id}"; if (!is_null($this->in_reply_to_id)) { $pid = $this->in_reply_to_id; - $path = config('app.url')."/p/{$username}/{$pid}/c/{$id}"; + $path = "{$this->parent()->url()}#comment-{$id}"; } return url($path);