300321 Minor Changes

This commit is contained in:
daisuke
2021-03-30 14:59:35 -06:00
parent 984549035d
commit 2f70e11120
2 changed files with 6 additions and 2 deletions

View File

@ -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.
</audio> </div>";
}
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 */