Skip to content

Commit

Permalink
functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Dec 16, 2024
1 parent d15dbfa commit 6b49539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions petitnote/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1399,10 +1399,10 @@ function post_share_server(){
// $share_url="https://x.com/intent/post?text=";
$share_url="https://twitter.com/intent/tweet?text=";
}
if($sns_server_radio === "https://bsky.app"||!$sns_server_radio && ($sns_server_direct_input === "https://bsky.app")){
if(in_array("https://bsky.app",[$sns_server_radio,$sns_server_direct_input])){
$share_url="https://bsky.app/intent/compose?text=";
}
if($sns_server_radio === "https://www.threads.net"||!$sns_server_radio && ($sns_server_direct_input === "https://www.threads.net")){
if(in_array("https://www.threads.net",[$sns_server_radio,$sns_server_direct_input])){
$share_url="https://www.threads.net/intent/post?text=";
}
$share_url.=$encoded_t.'%20'.$encoded_u;
Expand Down

0 comments on commit 6b49539

Please sign in to comment.