mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 05:21:00 +00:00
Remove trailing 07 in routes/posts.rs
This commit is contained in:
parent
9b04fb96e6
commit
78a001ac89
1 changed files with 2 additions and 4 deletions
|
@ -15,9 +15,7 @@ use crate::routes::{
|
|||
};
|
||||
use crate::template_utils::{IntoContext, Ructe};
|
||||
use crate::utils::requires_login;
|
||||
use plume_common::activity_pub::{
|
||||
broadcast, ActivityStream, ApRequest, LicensedArticle as LicensedArticle07,
|
||||
};
|
||||
use plume_common::activity_pub::{broadcast, ActivityStream, ApRequest, LicensedArticle};
|
||||
use plume_common::utils::md_to_html;
|
||||
use plume_models::{
|
||||
blogs::*,
|
||||
|
@ -108,7 +106,7 @@ pub fn activity_details(
|
|||
slug: String,
|
||||
_ap: ApRequest,
|
||||
conn: DbConn,
|
||||
) -> Result<ActivityStream<LicensedArticle07>, Option<String>> {
|
||||
) -> Result<ActivityStream<LicensedArticle>, Option<String>> {
|
||||
let blog = Blog::find_by_fqn(&conn, &blog).map_err(|_| None)?;
|
||||
let post = Post::find_by_slug(&conn, &slug, blog.id).map_err(|_| None)?;
|
||||
if post.published {
|
||||
|
|
Loading…
Reference in a new issue