Move the parsing for the [bur:<id>], [ta:<id>], [ti:<id>] pseudo tags to the main parser in `DText.format_text`. This fixes a bug where wiki links inside bulk update requests on the forum weren't properly colorized because the text of the BUR was embedded after we scanned for wiki links, not before. This also ensures that tags inside bulk update requests will be recorded in the dtext_links table, meaning that forum posts can be properly searched by tags. This incidentally means that these request pseudo tags can now be used outside the forum.
10 lines
275 B
Ruby
10 lines
275 B
Ruby
module ForumTopicsHelper
|
|
def forum_topic_category_select(object, field)
|
|
select(object, field, ForumTopic.reverse_category_mapping.to_a)
|
|
end
|
|
|
|
def available_min_user_levels
|
|
ForumTopic::MIN_LEVELS.select { |name, level| level <= CurrentUser.level }.to_a
|
|
end
|
|
end
|