Compare commits
No commits in common. "019aafa647bb0807909a172cde0e7ce31ffdacb0" and "9cc5307c594d922ca39ca9d45583c40b6f640066" have entirely different histories.
019aafa647
...
9cc5307c59
5 changed files with 4 additions and 13 deletions
2
.env
Normal file
2
.env
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DATABASE_URL=sqlite://./blogdor.db
|
||||
DATABASE_FILE=./blogdor.db
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,3 @@
|
|||
/target
|
||||
blogdor.db
|
||||
secrets
|
||||
.env
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ Requires=network-online.target
|
|||
Type=exec
|
||||
User=blogdor
|
||||
Group=blogdor
|
||||
EnvironmentFile=/var/lib/blogdor/.env
|
||||
ExecStart=/var/lib/blogdor/blogdor
|
||||
ExecStart=/var/lib/blogdor/blogdor -e /var/lib/blogdor/.env
|
||||
TimeoutStopSec=5s
|
||||
LimitNOFILE=1048576
|
||||
LimitNPROC=512
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
DATABASE_URL=sqlite://blogdor.db
|
||||
DATABASE_FILE=./blogdor.db
|
||||
ZULIP_TOKEN=a_token
|
||||
ZULIP_URL=http://localhost:8000
|
||||
BLOGDOR_TO_ZULIP_EMAIL=blogdor-incoming-bot@zulip-host
|
||||
ZULIP_TO_BLOGDOR_EMAIL=blogdor-outgoing-bot@zulip-host
|
||||
ZULIP_CHANNEL=35
|
||||
BLOGDOR_TOKEN=another_token
|
||||
|
|
@ -304,10 +304,9 @@ async fn check_feed(
|
|||
feed_url: url.clone(),
|
||||
title: post
|
||||
.title
|
||||
.clone()
|
||||
.map(|t| t.content)
|
||||
.unwrap_or("Blogdor Says: NO POST TITLE".to_string()),
|
||||
published: post.posted().unwrap_or(now),
|
||||
published: post.published.unwrap_or(now),
|
||||
received: now,
|
||||
feed_description: feed.description.to_owned().map(|d| d.content),
|
||||
body: post.content.and_then(|c| {
|
||||
|
|
|
|||
Loading…
Reference in a new issue