aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ActivityStreams.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-19 21:40:38 -0700
committerzotlabs <mike@macgirvin.com>2017-09-19 21:40:38 -0700
commit00fe4e747f9884ab11fe94621f645fc351285964 (patch)
tree449a593745f0e17f135a05937ab304be3a9df408 /Zotlabs/Lib/ActivityStreams.php
parentb0cdec0c35136db8cbb0cf13135a1f5cc8d1bc05 (diff)
downloadvolse-hubzilla-00fe4e747f9884ab11fe94621f645fc351285964.tar.gz
volse-hubzilla-00fe4e747f9884ab11fe94621f645fc351285964.tar.bz2
volse-hubzilla-00fe4e747f9884ab11fe94621f645fc351285964.zip
use frozen jsonld contexts
Diffstat (limited to 'Zotlabs/Lib/ActivityStreams.php')
-rw-r--r--Zotlabs/Lib/ActivityStreams.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php
index d9735881a..1b9f82ddf 100644
--- a/Zotlabs/Lib/ActivityStreams.php
+++ b/Zotlabs/Lib/ActivityStreams.php
@@ -58,7 +58,7 @@ class ActivityStreams {
$this->saved_recips = $arr;
}
- function collect_recips($base = '',$namespace = 'https://www.w3.org/ns/activitystreams') {
+ function collect_recips($base = '',$namespace = ACTIVITYSTREAMS_JSONLD_REV) {
$x = [];
$fields = [ 'to','cc','bto','bcc','audience'];
foreach($fields as $f) {
@@ -75,7 +75,7 @@ class ActivityStreams {
return $x;
}
- function expand($arr,$base = '',$namespace = 'https://www.w3.org/ns/activitystreams') {
+ function expand($arr,$base = '',$namespace = ACTIVITYSTREAMS_JSONLD_REV) {
$ret = [];
// right now use a hardwired recursion depth of 5
@@ -135,7 +135,7 @@ class ActivityStreams {
}
- function get_property_obj($property,$base = '',$namespace = 'https://www.w3.org/ns/activitystreams') {
+ function get_property_obj($property,$base = '',$namespace = ACTIVITYSTREAMS_JSONLD_REV ) {
$prefix = $this->get_namespace($base,$namespace);
if($prefix === null)
return null;
@@ -158,7 +158,7 @@ class ActivityStreams {
return null;
}
- function get_compound_property($property,$base = '',$namespace = 'https://www.w3.org/ns/activitystreams') {
+ function get_compound_property($property,$base = '',$namespace = ACTIVITYSTREAMS_JSONLD_REV) {
$x = $this->get_property_obj($property,$base,$namespace);
if($this->is_url($x)) {
$x = $this->fetch_property($x);
@@ -173,7 +173,7 @@ class ActivityStreams {
return false;
}
- function get_primary_type($base = '',$namespace = 'https://www.w3.org/ns/activitystreams') {
+ function get_primary_type($base = '',$namespace = ACTIVITYSTREAMS_JSONLD_REV) {
if(! $base)
$base = $this->data;
$x = $this->get_property_obj('type',$base,$namespace);