add build script

This commit is contained in:
Ondřej Hruška 2021-08-22 19:19:21 +02:00
parent 8822d8d11d
commit 448746b1da
No known key found for this signature in database
GPG key ID: 2C5FD5035250423D
4 changed files with 8 additions and 7 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@
group-actor-data.toml
.idea/
groups.json
fedigroups

5
Makefile Normal file
View file

@ -0,0 +1,5 @@
.PHONY: build
build:
cargo build --release
ln -sf ./target/release/fedigroups .

View file

@ -172,11 +172,6 @@ impl GroupHandle {
let mut replies = vec![];
let mut announcements = vec![];
let mut do_boost_prev_post = false;
// let mut new_members = vec![];
// let mut new_admins = vec![];
// let mut removed_admins = vec![];
// let mut instance_ban_announcements = vec![];
// let mut instance_unban_announcements = vec![];
let mut any_admin_cmd = false;
if commands.is_empty() {
@ -206,7 +201,7 @@ impl GroupHandle {
return Ok(());
}
StatusCommand::Announce(a) => {
debug!("Sending PSA");
info!("Sending PSA");
announcements.push(a);
}
StatusCommand::Boost => {

View file

@ -130,7 +130,7 @@ impl ConfigStore {
match client.verify_credentials().await {
Ok(account) => {
info!(
"Group account verified: @{}, {}",
"Group account verified: @{}, \"{}\"",
account.acct, account.display_name
);
}