Compare commits

...

3 Commits

Author SHA1 Message Date
8720fb3079
Revert "chore: gravatar fallback"
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit d6df38cb35.
2023-04-28 08:54:12 +08:00
431598503f
feat(api/markdown): default content 2023-04-28 08:53:23 +08:00
b656d59b23
fix(blog): replies bg 2023-04-28 08:51:41 +08:00
3 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,10 @@ $purifier_type = UOJRequest::post('purifier_type', 'is_string', 'default');
$markdown = UOJRequest::post('markdown', 'is_string', ''); $markdown = UOJRequest::post('markdown', 'is_string', '');
if ($markdown == '') {
$markdown = '_Nothing to preview._';
}
$parsedown = HTML::parsedown(); $parsedown = HTML::parsedown();
if ($purifier_type == 'inline') { if ($purifier_type == 'inline') {

View File

@ -333,7 +333,7 @@ $comments_pag = new Paginator([
</li> </li>
</ul> </ul>
<?php if ($replies) : ?> <?php if ($replies) : ?>
<div id="replies-<?= $comment['id'] ?>" class="rounded bg-secondary-subtle mt-2 border"></div> <div id="replies-<?= $comment['id'] ?>" class="rounded bg-secondary bg-opacity-10 mt-2 border"></div>
<?php endif ?> <?php endif ?>
<script> <script>
showCommentReplies('<?= $comment['id'] ?>', <?= $replies_json ?>); showCommentReplies('<?= $comment['id'] ?>', <?= $replies_json ?>);

View File

@ -117,7 +117,7 @@ class HTML {
return "https://q1.qlogo.cn/g?b=qq&nk={$user['qq']}&s=$s"; return "https://q1.qlogo.cn/g?b=qq&nk={$user['qq']}&s=$s";
} }
return 'https://cravatar.cn/avatar/' . md5(strtolower(trim($user['email']))) . "?d=mm&amp;s=$size"; return 'https://cravatar.cn/avatar/' . md5(strtolower(trim($user['email']))) . "?d=404&amp;s=$size";
} }
public static function tablist($tabs_info, $cur, $type = 'nav-tabs') { public static function tablist($tabs_info, $cur, $type = 'nav-tabs') {