Very strange bug that I don't know how it got there

This commit is contained in:
Diogo Cordeiro 2018-07-31 22:41:40 +01:00
parent c7a758b6c8
commit dd5af79304

View File

@ -92,7 +92,7 @@ class ActivityPubPlugin extends Plugin
public static function get_local_notice_from_url($url)
{
try {
return Notice::getByUri($data->object->inReplyTo);
return Notice::getByUri($url);
} catch (Exception $e) {
try {
$candidate = Notice::getByID(intval(substr($url, strlen(common_local_url('shownotice', ['notice' => ''])))));