mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Merge pull request #849 from annando/false-positive
Blockbot: Avoid false positives
This commit is contained in:
commit
796ef5d507
2 changed files with 61 additions and 3 deletions
|
@ -575,7 +575,7 @@ function twitter_post_hook(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
Logger::log('twitter post invoked');
|
||||
Logger::notice('twitter post invoked', ['id' => $b['id'], 'guid' => $b['guid']]);
|
||||
|
||||
PConfig::load($b['uid'], 'twitter');
|
||||
|
||||
|
@ -610,6 +610,7 @@ function twitter_post_hook(App $a, array &$b)
|
|||
$b['body'] = twitter_update_mentions($b['body']);
|
||||
|
||||
$msgarr = ItemContent::getPlaintextPost($b, $max_char, true, 8);
|
||||
Logger::info('Got plaintext', $msgarr);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (($msg == "") && isset($msgarr["title"])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue