mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Fix formatting
This commit is contained in:
parent
ca6e477701
commit
3e141d268e
7 changed files with 36 additions and 18 deletions
|
@ -568,15 +568,17 @@ function statusnet_post_hook(App $a, &$b)
|
|||
$nicknameplain = "@" . $nick;
|
||||
|
||||
logger("statusnet_post_hook: comparing " . $nickname . " and " . $nicknameplain . " with " . $b["body"], LOGGER_DEBUG);
|
||||
if ((strpos($b["body"], $nickname) === false) && (strpos($b["body"], $nicknameplain) === false))
|
||||
if ((strpos($b["body"], $nickname) === false) && (strpos($b["body"], $nicknameplain) === false)) {
|
||||
$b["body"] = $nickname . " " . $b["body"];
|
||||
}
|
||||
|
||||
logger("statusnet_post_hook: parent found " . print_r($orig_post, true), LOGGER_DEBUG);
|
||||
} else {
|
||||
$iscomment = false;
|
||||
|
||||
if ($b['private'] || !strstr($b['postopts'], 'statusnet'))
|
||||
if ($b['private'] || !strstr($b['postopts'], 'statusnet')) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Dont't post if the post doesn't belong to us.
|
||||
// This is a check for forum postings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue