diff --git a/src/classes/Fetcher.coffee b/src/classes/Fetcher.coffee
index ecfa4103d..a41c505f8 100644
--- a/src/classes/Fetcher.coffee
+++ b/src/classes/Fetcher.coffee
@@ -123,10 +123,11 @@ class Fetcher
# https://github.com/eksopl/fuuka/blob/master/Board/Yotsuba.pm#L413-452
# https://github.com/eksopl/asagi/blob/master/src/main/java/net/easymodo/asagi/Yotsuba.java#L109-138
- comment = (data.comment or '').split /(\n|\[\/?(?:b|spoiler|code|moot|banned|i|red|green|blue)\])/
+ comment = (data.comment or '').split /(\n|\[\/?(?:b|spoiler|code|moot|banned|fortune(?: color="#\w+")?|i|red|green|blue)\])/
comment = for text, i in comment
if i % 2 is 1
- @archiveTags[text]
+ tag = @archiveTags[text.replace(/\ .*\]/, ']')]
+ if typeof tag is 'function' then tag(text) else tag
else
greentext = text[0] is '>'
text = text.replace /(\[\/?[a-z]+):lit(\])/g, '$1$2'
@@ -200,6 +201,8 @@ class Fetcher
'[/moot]': <%= html('') %>
'[banned]': <%= html('') %>
'[/banned]': <%= html('') %>
+ '[fortune]': (text) -> <%= html('') %>
+ '[/fortune]': <%= html('') %>
'[i]': <%= html('') %>
'[/i]': <%= html('') %>
'[red]': <%= html('') %>