Skip to content

Commit

Permalink
add "/" at the end of link in mastodon posting
Browse files Browse the repository at this point in the history
  • Loading branch information
Geobert Quach committed Feb 22, 2023
1 parent 0f2bdcd commit 1b5faa0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "emile"
version = "0.4.2"
version = "0.4.3"
authors = ["Geobert Quach <geobert@proton.me>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async fn push_to_social(config: &SiteConfig, content: &str, dest: &Path) -> Resu

// fill link
let link = format!(
"{}/posts/{}",
"{}/posts/{}/",
mastodon.base_url,
dest.file_stem()
.expect("Should have file_name by now")
Expand Down

0 comments on commit 1b5faa0

Please sign in to comment.