[ActivityPub] Fix notice creation
Activitypub_notice: - Perform url test, use id when missing.
This commit is contained in:
parent
37936d101e
commit
3472eca45b
|
@ -116,7 +116,7 @@ class Activitypub_notice extends Managed_DataObject
|
|||
public static function create_notice($object, $actor_profile = null)
|
||||
{
|
||||
$id = $object['id']; // int
|
||||
$url = $object['url']; // string
|
||||
$url = isset($object['url']) ? $object['url'] : $id; // string
|
||||
$content = $object['content']; // string
|
||||
|
||||
// possible keys: ['inReplyTo', 'latitude', 'longitude']
|
||||
|
|
Loading…
Reference in New Issue
Block a user