mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:55:19 +00:00
doco change
This commit is contained in:
parent
2a4eaabf0c
commit
d6435de364
1 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
namespace Code\Lib;
|
||||
|
||||
use Code\Web\HTTPSig;
|
||||
|
||||
|
||||
/**
|
||||
* @brief ActivityStreams class.
|
||||
*
|
||||
|
@ -50,7 +50,7 @@ class ActivityStreams
|
|||
$this->raw = $string;
|
||||
$this->hub = $hub;
|
||||
$this->client = $client;
|
||||
|
||||
|
||||
if (is_array($string)) {
|
||||
$this->data = $string;
|
||||
$this->raw = json_encode($string, JSON_UNESCAPED_SLASHES);
|
||||
|
@ -93,7 +93,7 @@ class ActivityStreams
|
|||
else {
|
||||
logger('JSalmon verification failure.');
|
||||
$this->valid = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -287,7 +287,7 @@ class ActivityStreams
|
|||
* @brief get single property from Activity object
|
||||
*
|
||||
* @param string $property
|
||||
* @param mixed return value if property or object not set
|
||||
* @param mixed $default return value if property or object not set
|
||||
* or object is a string id which could not be fetched.
|
||||
* @return mixed
|
||||
*/
|
||||
|
@ -295,7 +295,7 @@ class ActivityStreams
|
|||
$x = $this->get_property_obj($property,$this->obj);
|
||||
return (isset($x)) ? $x : $default;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
|
@ -507,7 +507,7 @@ class ActivityStreams
|
|||
'application/ld+json;profile="https://www.w3.org/ns/activitystreams"',
|
||||
'application/activity+json',
|
||||
'application/ld+json;profile="http://www.w3.org/ns/activitystreams"',
|
||||
'application/ld+json',
|
||||
'application/ld+json',
|
||||
'application/x-zot-activity+json'
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue