summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xetc/gitea2mastodon.rb1
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(' ') }