Notice: Return Conversation URL instead of ID (#13)

This commit is contained in:
Ani 2018-07-27 02:13:44 +01:00 committed by Diogo Cordeiro
parent 78113620eb
commit bff507bab8

View File

@ -81,7 +81,7 @@ class Activitypub_notice extends Managed_DataObject
'url' => $notice->getUrl(),
'reply_to' => empty($notice->reply_to) ? null : Notice::getById($notice->reply_to)->getUri(),
'is_local' => $notice->isLocal(),
'conversation' => intval($notice->conversation),
'conversation' => $notice->getConversationUrl(),
'attachment' => $attachments,
'tag' => $tags
];