300321 Minor Changes
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user