Skip to content

Commit

Permalink
delete offset
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Feb 7, 2025
1 parent d0e110f commit f4ab80b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions includes/class-dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public static function process_outbox( $id ) {
} else {
// No followers to process for this update. We're done.
\wp_publish_post( $outbox_item );
\delete_post_meta( $outbox_item->ID, '_activitypub_outbox_offset' );
}
}

Expand Down
7 changes: 3 additions & 4 deletions includes/collection/class-outbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,9 @@ private static function invalidate_existing_items( $object_id, $activity_type, $
)
);

if ( $existing_items ) {
foreach ( $existing_items as $existing_item_id ) {
\wp_publish_post( $existing_item_id );
}
foreach ( $existing_items as $existing_item_id ) {
\wp_publish_post( $existing_item_id );
\delete_post_meta( $existing_item_id, '_activitypub_outbox_offset' );
}
}
}

0 comments on commit f4ab80b

Please sign in to comment.