From 1baac415512b3f45e2314ff58390f433dd9147be Mon Sep 17 00:00:00 2001 From: myrmidex Date: Sat, 28 Jun 2025 12:38:35 +0200 Subject: [PATCH] Basic article fetcher --- .env | 3 +++ bootstrap/config.php | 12 ++++++++++++ src/Domain/Articles/ArticlePosted.php | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .env create mode 100644 bootstrap/config.php diff --git a/.env b/.env new file mode 100644 index 0000000..8b8243b --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +LEMMY_TOKEN= +LEMMY_INSTANCE= +TARGET_COMMUNITY= \ No newline at end of file diff --git a/bootstrap/config.php b/bootstrap/config.php new file mode 100644 index 0000000..408f1dd --- /dev/null +++ b/bootstrap/config.php @@ -0,0 +1,12 @@ +safeLoad(); + +return [ + 'lemmy' => [ + 'community' => $_ENV['LEMMY_COMMUNITY'] ?? 'default', + ], +]; \ No newline at end of file diff --git a/src/Domain/Articles/ArticlePosted.php b/src/Domain/Articles/ArticlePosted.php index 05adbcd..4420833 100644 --- a/src/Domain/Articles/ArticlePosted.php +++ b/src/Domain/Articles/ArticlePosted.php @@ -1,6 +1,6 @@