Gemini server written in Crystal
Révision | f8ed96c7941d71d04966da682f63ea2d3dcc574e (tree) |
---|---|
l'heure | 2023-11-19 08:01:35 |
Auteur | Remilia Scarlet <alexa@part...> |
Commiter | Remilia Scarlet |
Properly include the footer
@@ -50,9 +50,7 @@ | ||
50 | 50 | end |
51 | 51 | |
52 | 52 | if mtype == GEMINI_MIME_TYPE |
53 | - if (foot = !Aya.config.footer) | |
54 | - sock << '\n' << foot << '\n' | |
55 | - end | |
53 | + Aya.config.footer.try { |str| sock << '\n' << str << '\n' } | |
56 | 54 | end |
57 | 55 | end |
58 | 56 |
@@ -83,6 +81,7 @@ | ||
83 | 81 | |
84 | 82 | sock << "20 #{GEMINI_MIME_TYPE}\r\n" |
85 | 83 | sock << gemtext |
84 | + Aya.config.footer.try { |str| sock << '\n' << str << '\n' } | |
86 | 85 | return |
87 | 86 | end |
88 | 87 |