diff --git a/crates/api/src/lib.rs b/crates/api/src/lib.rs
index 5621fe2dfcb19ece1aeb1256b8515828966df19e..e3acae193a62fbca4e66d7f6f7f0d09d21941cfb 100644
--- a/crates/api/src/lib.rs
+++ b/crates/api/src/lib.rs
@@ -85,7 +85,9 @@ pub fn read_auth_token(req: &HttpRequest) -> Result<Option<String>, LemmyError>
     // ensure that its marked as httponly and secure
     let secure = cookie.secure().unwrap_or_default();
     let http_only = cookie.http_only().unwrap_or_default();
-    if !secure || !http_only {
+    let is_debug_mode = cfg!(debug_assertions);
+
+    if !is_debug_mode && (!secure || !http_only) {
       Err(LemmyError::from(LemmyErrorType::AuthCookieInsecure))
     } else {
       Ok(Some(cookie.value().to_string()))
diff --git a/crates/apub/src/activities/voting/mod.rs b/crates/apub/src/activities/voting/mod.rs
index c60235c0512be925da9df70d0d4bd4d429fabf00..0f9876f1a5fea9c42bbb4e60be1682d1c113b65c 100644
--- a/crates/apub/src/activities/voting/mod.rs
+++ b/crates/apub/src/activities/voting/mod.rs
@@ -33,7 +33,7 @@ pub(crate) async fn send_like_activity(
   score: i16,
   context: Data<LemmyContext>,
 ) -> Result<(), LemmyError> {
-  let object_id: ObjectId<PostOrComment> = object_id.try_into()?;
+  let object_id: ObjectId<PostOrComment> = object_id.into();
   let actor: ApubPerson = actor.into();
   let community: ApubCommunity = community.into();