Remove logging to find bug (yerbamate.ml/LemmyNet/lemmy/pulls/146)
This commit is contained in:
parent
1790d41855
commit
b02d67fd85
3 changed files with 0 additions and 13 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -1761,7 +1761,6 @@ dependencies = [
|
|||
"async-trait",
|
||||
"awc",
|
||||
"background-jobs",
|
||||
"backtrace",
|
||||
"base64 0.13.0",
|
||||
"bcrypt",
|
||||
"chrono",
|
||||
|
|
|
@ -46,4 +46,3 @@ anyhow = "1.0"
|
|||
thiserror = "1.0"
|
||||
background-jobs = " 0.8"
|
||||
reqwest = { version = "0.10", features = ["json"] }
|
||||
backtrace = "0.3"
|
||||
|
|
|
@ -20,7 +20,6 @@ use activitystreams::{
|
|||
};
|
||||
use activitystreams_ext::Ext1;
|
||||
use anyhow::Context;
|
||||
use backtrace::Backtrace;
|
||||
use lemmy_db::{
|
||||
community::Community,
|
||||
post::{Post, PostForm},
|
||||
|
@ -36,7 +35,6 @@ use lemmy_utils::{
|
|||
LemmyError,
|
||||
};
|
||||
use lemmy_websocket::LemmyContext;
|
||||
use log::error;
|
||||
use url::Url;
|
||||
|
||||
#[async_trait::async_trait(?Send)]
|
||||
|
@ -148,15 +146,6 @@ impl FromApubToForm<PageExt> for PostForm {
|
|||
let community =
|
||||
get_or_fetch_and_upsert_community(community_actor_id, context, request_counter).await?;
|
||||
|
||||
if community.local && creator.local {
|
||||
let page_id = page.id_unchecked().context(location_info!())?;
|
||||
let bt = Backtrace::new();
|
||||
error!(
|
||||
"Lemmy is parsing a local post as remote, page id: {}, stack trace: {:?}",
|
||||
page_id, bt
|
||||
);
|
||||
}
|
||||
|
||||
let thumbnail_url = match &page.inner.image() {
|
||||
Some(any_image) => Image::from_any_base(
|
||||
any_image
|
||||
|
|
Loading…
Reference in a new issue