Very strange bug that I don't know how it got there
This commit is contained in:
parent
c7a758b6c8
commit
dd5af79304
@ -92,7 +92,7 @@ class ActivityPubPlugin extends Plugin
|
|||||||
public static function get_local_notice_from_url($url)
|
public static function get_local_notice_from_url($url)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return Notice::getByUri($data->object->inReplyTo);
|
return Notice::getByUri($url);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
try {
|
try {
|
||||||
$candidate = Notice::getByID(intval(substr($url, strlen(common_local_url('shownotice', ['notice' => ''])))));
|
$candidate = Notice::getByID(intval(substr($url, strlen(common_local_url('shownotice', ['notice' => ''])))));
|
||||||
|
Reference in New Issue
Block a user