mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Remove mybb video tags
mybb embedds videos like this: [video=provider]http://link-to-video.com[/video] Let's remove these video tags as discourse does this automatically.
This commit is contained in:
parent
f25f8de972
commit
54d450156f
1 changed files with 3 additions and 0 deletions
|
@ -150,6 +150,9 @@ class ImportScripts::MyBB < ImportScripts::Base
|
|||
# [quote="cybereality":b0wtlzex]Some text.[/quote:b0wtlzex]
|
||||
s.gsub!(/:(?:\w{8})\]/, ']')
|
||||
|
||||
# Remove mybb video tags.
|
||||
s.gsub!(/(^\[video=.*?\])|(\[\/video\]$)/, '')
|
||||
|
||||
s = CGI.unescapeHTML(s)
|
||||
|
||||
# phpBB shortens link text like this, which breaks our markdown processing:
|
||||
|
|
Loading…
Reference in a new issue