]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub.php
Fix commenting on mobile to Diaspora
[friendica.git] / src / Protocol / ActivityPub.php
index 45279576b7aaae56dbf0316863a71ef898e3c9cf..c42dad2eb39c26dc6b6990f0e924235d05455b0a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -77,6 +77,7 @@ class ActivityPub
        public static function isRequest()
        {
                return stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/activity+json') ||
+                       stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/json') ||
                        stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/ld+json');
        }