add build script

pull/14/head
Ondřej Hruška 3 years ago
parent 8822d8d11d
commit 448746b1da
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 1
      .gitignore
  2. 5
      Makefile
  3. 7
      src/group_handle.rs
  4. 2
      src/store/mod.rs

1
.gitignore vendored

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

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

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

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

Loading…
Cancel
Save