From 2f70e11120dee797f17044a0d41b56fbbec620a2 Mon Sep 17 00:00:00 2001 From: daisuke Date: Tue, 30 Mar 2021 14:59:35 -0600 Subject: [PATCH] 300321 Minor Changes --- modules/timeline.php | 4 ++-- settings.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/timeline.php b/modules/timeline.php index 8326bf4..2ede4d6 100644 --- a/modules/timeline.php +++ b/modules/timeline.php @@ -192,7 +192,7 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) { $json['mentions'] = ($user_settings['acct'] == $elem["account"]['acct'] ? "" : "@" . $elem["account"]['acct']) . " "; if (!empty($array)) { foreach ($array as $mnt) { - if ($mnt['acct'] != $user_settings['acct']) { + if ($mnt['acct'] != $user_settings['acct'] && $mnt['acct'] != $elem['account']['acct']) { $json['mentions'] .= "@" . $mnt['acct'] . " "; } } @@ -263,7 +263,7 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) { Your browser does not support the audio tag. "; } - elseif (in_array($ext,array('jpg','jpeg','png','gif','apng','svg')) || $file['type'] == "image") { + elseif (in_array($ext,array('jpg','jpeg','png','gif','apng','svg','webp')) || $file['type'] == "image") { /* we'll either hide the attachment or assign a css class depending on the user's settings */ /* if the post is marked as sensitive and nsfw hiding isn't turned off, we'll blur the image */ diff --git a/settings.php b/settings.php index 661e74d..959c1d7 100644 --- a/settings.php +++ b/settings.php @@ -8,4 +8,8 @@ $setting['url'] = "https://your.url/dir"; //Short description $setting['description'] = "

Dashboard FE (or DashFE if you like it) it's a third party client/frontend for Pleroma and Mastodon that tries to mimic the look and feel of the Tumblr user dashboard, putting big emphasis in a timeline filled by media of all types

Currently a Work in Progress, DashFE can actually be used but it's very possible that there are still rough edges, missing features and stuff that needs to be corrected and/or optimized. Issues, suggestion or sugerences please contact @daisuke@stereophonic.space via your favorite fediverse account.

Thank You

"; + +//Locked Instance +//If you prefer your instance of DashboardFE to be locked to a certain instance (your own instance, for example) and prevent it's use on another sites, just uncomment the following line and put the url of the desired instance +//$setting['lockedto'] = "your.url/dir"; ?>