local_site::LocalSite,
},
traits::Crud,
+ utils::naive_now,
};
use lemmy_db_views::structs::CommentView;
use lemmy_utils::{
.content(content_slurs_removed)
.distinguished(data.distinguished)
.language_id(data.language_id)
+ .updated(Some(Some(naive_now())))
.build();
let updated_comment = Comment::update(context.pool(), comment_id, &form)
.await
local_site::LocalSite,
},
traits::Crud,
- utils::{diesel_option_overwrite, diesel_option_overwrite_to_url},
+ utils::{diesel_option_overwrite, diesel_option_overwrite_to_url, naive_now},
};
use lemmy_db_views_actor::structs::CommunityModeratorView;
use lemmy_utils::{error::LemmyError, utils::check_slurs_opt, ConnectionId};
.banner(banner)
.nsfw(data.nsfw)
.posting_restricted_to_mods(data.posting_restricted_to_mods)
+ .updated(Some(Some(naive_now())))
.build();
let community_id = data.community_id;
post::{Post, PostUpdateForm},
},
traits::Crud,
- utils::diesel_option_overwrite,
+ utils::{diesel_option_overwrite, naive_now},
};
use lemmy_utils::{
error::LemmyError,
.embed_video_url(embed_video_url)
.language_id(data.language_id)
.thumbnail_url(Some(thumbnail_url))
+ .updated(Some(Some(naive_now())))
.build();
let post_id = data.post_id;