Fix Inbox Undo Like
This commit is contained in:
parent
5196edafa0
commit
83f5c513b4
@ -38,10 +38,10 @@ switch ($data->object->type) {
|
|||||||
case "Like":
|
case "Like":
|
||||||
try {
|
try {
|
||||||
// Validate data
|
// Validate data
|
||||||
if (!isset($data->object->object->id)) {
|
if (!isset($data->object->object)) {
|
||||||
ActivityPubReturn::error("Notice ID was not specified.");
|
ActivityPubReturn::error("Notice URI was not specified.");
|
||||||
}
|
}
|
||||||
Fave::removeEntry($actor_profile, ActivityPubPlugin::get_local_notice_from_url($data->object->object->id));
|
Fave::removeEntry($actor_profile, ActivityPubPlugin::get_local_notice_from_url($data->object->object));
|
||||||
// Notice disfavorited successfully.
|
// Notice disfavorited successfully.
|
||||||
ActivityPubReturn::answer(
|
ActivityPubReturn::answer(
|
||||||
Activitypub_undo::undo_to_array(
|
Activitypub_undo::undo_to_array(
|
||||||
|
Reference in New Issue
Block a user