Skip to content

Commit

Permalink
fix: 修复bark通知的一出错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokinx authored Dec 8, 2024
1 parent f9758e1 commit cf554c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ function bark_push_msg( $comment_id ) {
];
$title = urlencode(trim( get_the_title( $comment->comment_post_ID ) ) ?: $query['group']);
$message = urlencode(trim( $comment->comment_author . '' . $comment->comment_content ));
if ( strpos( $query['avatar'], 'http' ) !== 0 ) {
$query['avatar'] = 'https:' . $query['avatar'];
if ( strpos( $query['icon'], 'http' ) !== 0 ) {
$query['icon'] = 'https:' . $query['icon'];
}

$stream = stream_context_create( [
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Simple, smooth, data-driven, responsive WordPress theme
Author: Tokin
Author URI: https://biji.io
Version: 0.8.7
Version: 0.8.8
Tested up to: 5.9.3
Requires at least: 5.8
Requires PHP: 7.0
Expand Down

0 comments on commit cf554c2

Please sign in to comment.