[ActivityPub] Fix notice creation
Activitypub_notice: - Perform url test, use id when missing.
Dieser Commit ist enthalten in:
Ursprung
883621ba34
Commit
14a45dc546
@ -115,9 +115,9 @@ class Activitypub_notice extends Managed_DataObject
|
||||
*/
|
||||
public static function create_notice($object, $actor_profile = null)
|
||||
{
|
||||
$id = $object['id']; // int
|
||||
$url = $object['url']; // string
|
||||
$content = $object['content']; // string
|
||||
$id = $object['id']; // int
|
||||
$url = isset($object['url']) ? $object['url'] : $id; // string
|
||||
$content = $object['content']; // string
|
||||
|
||||
// possible keys: ['inReplyTo', 'latitude', 'longitude']
|
||||
$settings = [];
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren