From 0c4ac55bdbb6e83c5ec80089fb9e0efe0a38496f Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 18 Aug 2018 16:34:23 -0400 Subject: Only post commits with bodies to Mastodon --- etc/gitea2mastodon.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'etc') 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(' ') } -- cgit 1.4.1