]> git.mxchange.org Git - friendica.git/commitdiff
Added "braces" for @annando
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 11 Apr 2017 06:12:14 +0000 (02:12 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 11 Apr 2017 06:12:14 +0000 (02:12 -0400)
include/ostatus.php

index b8db50cd1d3a97592b857b057085a6d284aca1a3..3b263417a2bd1bfb2879bc73b050cd5b92518b14 100644 (file)
@@ -358,7 +358,7 @@ class ostatus {
                        $item["verb"] = $xpath->query('activity:verb/text()', $entry)->item(0)->nodeValue;
 
                        // Mastodon Content Warning
-                       if ($item["verb"] == ACTIVITY_POST AND $xpath->evaluate('boolean(atom:summary)', $entry)) {
+                       if (($item["verb"] == ACTIVITY_POST) AND $xpath->evaluate('boolean(atom:summary)', $entry)) {
                                $clear_text = $xpath->query('atom:summary/text()', $entry)->item(0)->nodeValue;
 
                                $item["body"] = html2bbcode($clear_text) . '[spoiler]' . $item["body"] . '[/spoiler]';