Join with newlines for embed generation.

Server January URL endpoint on server configuration.
This commit is contained in:
Paul
2021-05-14 22:39:16 +01:00
parent 6cc92b877e
commit 6716a2d32b
4 changed files with 14 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
use crate::util::variables::VAPID_PRIVATE_KEY;
use crate::util::variables::{VAPID_PRIVATE_KEY, USE_JANUARY};
use crate::{
database::*,
notifications::{events::ClientboundNotification, websocket::is_online},
@@ -231,6 +231,10 @@ impl Message {
}
pub fn process_embed(&self) {
if !*USE_JANUARY {
return;
}
if let Content::Text(text) = &self.content {
let id = self.id.clone();
let content = text.clone();