mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update Status model
This commit is contained in:
parent
0f35996ed7
commit
69606293b3
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue