Skip to content

Commit

Permalink
sns_share.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Dec 16, 2024
1 parent b506a8e commit 7afca15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions potiboard5/sns_share.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ public static 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;
$share_url.=$encoded_t.'%20'.$encoded_u;
$share_url = filter_var($share_url, FILTER_VALIDATE_URL) ? $share_url : '';
if(!$share_url){
error($en ? "Please select an SNS sharing destination.":"SNSの共有先を選択してください。");
Expand Down

0 comments on commit 7afca15

Please sign in to comment.