summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-18 16:34:23 -0400
committerJune McEnroe <june@causal.agency>2018-08-18 16:34:23 -0400
commit0c4ac55bdbb6e83c5ec80089fb9e0efe0a38496f (patch)
treecb07c8d94bce1d9c8d4bbbc1f6d6717f0a8edf9f
parentRun tf/cfg link script with /bin/sh (diff)
downloadsrc-0c4ac55bdbb6e83c5ec80089fb9e0efe0a38496f.tar.gz
src-0c4ac55bdbb6e83c5ec80089fb9e0efe0a38496f.zip
Only post commits with bodies to Mastodon
-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(' ') }
21-01-15 22:04:45 +0000'>2021-01-15Update pounce to 2.2June McEnroe 2021-01-15Update catgirl to 1.4June McEnroe 2020-12-28Replace cgit-patched with cgit-causal-agencyJune McEnroe 2020-12-18Add notemap portJune McEnroe 2020-12-15Update libretls to 3.3.1June McEnroe 2020-12-15Update catsit to 1.1June McEnroe 2020-12-15Update pounce to 2.1p1June McEnroe 2020-12-15Add imbox portJune McEnroe 2020-11-24Update pounce to 2.1June McEnroe 2020-11-24Update libretls to 3.3.0June McEnroe 2020-11-17Update catgirl to 1.3June McEnroe 2020-11-17Update libretls to 3.2.2June McEnroe 2020-09-29Update libretls to 3.2.1June McEnroe 2020-09-10Update catgirl to 1.2June McEnroe 2020-09-09Add pounce-palaver portJune McEnroe 2020-09-09Update pounce to 2.0June McEnroe 2020-09-09Update litterbox to 1.6June McEnroe 2020-08-23Add scooper portJune McEnroe 2020-08-23Add catsit portJune McEnroe 2020-08-13Update pounce to 1.4p2June McEnroe 2020-08-11Update pounce to 1.4p1June McEnroe 2020-08-10Add litterbox portJune McEnroe 2020-08-10Add missing USES=pkgconfig to pounceJune McEnroe