diff options
author | June McEnroe <june@causal.agency> | 2018-08-18 16:34:23 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-18 16:34:23 -0400 |
commit | 0c4ac55bdbb6e83c5ec80089fb9e0efe0a38496f (patch) | |
tree | cb07c8d94bce1d9c8d4bbbc1f6d6717f0a8edf9f /etc | |
parent | Run tf/cfg link script with /bin/sh (diff) | |
download | src-0c4ac55bdbb6e83c5ec80089fb9e0efe0a38496f.tar.gz src-0c4ac55bdbb6e83c5ec80089fb9e0efe0a38496f.zip |
Only post commits with bodies to Mastodon
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/gitea2mastodon.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/gitea2mastodon.rb b/etc/gitea2mastodon.rb index d2eaafd0..950a881b 100755 --- a/etc/gitea2mastodon.rb +++ b/etc/gitea2mastodon.rb @@ -23,6 +23,7 @@ client = Mastodon::REST::Client.new( ) payload['commits'].reverse.each do |commit| + next unless commit['message'].include?("\n\n") message = commit['message'] .split("\n\n") .map {|p| p.split("\n").join(' ') } |