Removing blanks with tabs
This commit is contained in:
parent
2275f7e327
commit
ca9bd8b877
5 changed files with 445 additions and 445 deletions
1
pumpio/pumpio.php
Executable file → Normal file
1
pumpio/pumpio.php
Executable file → Normal file
|
@ -283,7 +283,6 @@ function pumpio_settings(&$a,&$s) {
|
|||
/* provide a submit button */
|
||||
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" id="pumpio-submit" name="pumpio-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div></div>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1429,7 +1429,7 @@ function statusnet_convertmsg($a, $body, $no_tags = false) {
|
|||
$expanded_url = original_url($match[1]);
|
||||
|
||||
$oembed_data = oembed_fetch_url($expanded_url, true);
|
||||
print_r($oembed_data);
|
||||
|
||||
if ($type == "")
|
||||
$type = $oembed_data->type;
|
||||
if ($oembed_data->type == "video") {
|
||||
|
|
0
tumblr/tumblr.php
Executable file → Normal file
0
tumblr/tumblr.php
Executable file → Normal file
11
twitter/twitter.php
Executable file → Normal file
11
twitter/twitter.php
Executable file → Normal file
|
@ -403,11 +403,13 @@ function twitter_post_hook(&$a,&$b) {
|
|||
$orig_post = $r[0];
|
||||
}
|
||||
|
||||
$nickname = preg_replace("=https?://twitter.com/(.*)=ism", "$1", $orig_post["author-link"]);
|
||||
$nickname = "@[url=".$orig_post["author-link"]."]".$nickname."[/url]";
|
||||
|
||||
logger("twitter_post_hook: comparing ".$nickname." with ".$b["body"], LOGGER_DEBUG);
|
||||
if (strpos($b["body"], $nickname) === false)
|
||||
$nicknameplain = preg_replace("=https?://twitter.com/(.*)=ism", "$1", $orig_post["author-link"]);
|
||||
$nickname = "@[url=".$orig_post["author-link"]."]".$nicknameplain."[/url]";
|
||||
$nicknameplain = "@".$nicknameplain;
|
||||
|
||||
logger("twitter_post_hook: comparing ".$nickname." and ".$nicknameplain." with ".$b["body"], LOGGER_DEBUG);
|
||||
if ((strpos($b["body"], $nickname) === false) AND (strpos($b["body"], $nicknameplain) === false))
|
||||
$b["body"] = $nickname." ".$b["body"];
|
||||
|
||||
logger("twitter_post_hook: parent found ".print_r($orig_post, true), LOGGER_DATA);
|
||||
|
@ -1636,5 +1638,4 @@ function twitter_is_retweet($a, $uid, $body) {
|
|||
|
||||
return(!isset($result->errors));
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue