Merge branch 'asonix/fix-linking-again' of asonix/mastodon into asonix/changes

This commit is contained in:
Arlo (Hyena) 2019-03-06 01:05:46 +00:00 committed by Gitea
commit e89fba290a
1 changed files with 16 additions and 16 deletions

View File

@ -311,11 +311,11 @@ class Formatter
end
def link_to_twitter(username)
link_to username "https://twitter.com/#{username}" "twitter.com"
link_to(username, "https://twitter.com/#{username}", "twitter.com")
end
def link_to_tumblr(username)
link_to username "https://#{username}.tumblr.com" "tumblr.com"
link_to(username, "https://#{username}.tumblr.com", "tumblr.com")
end
def link_to_weasyl(username)
@ -323,19 +323,19 @@ class Formatter
end
def link_to_furaffinity(username)
link_to username "https://furaffinity.net/user/#{username}" "furaffinity.net"
link_to(username, "https://furaffinity.net/user/#{username}", "furaffinity.net")
end
def link_to_furrynetwork(username)
link_to username "https://furrynetwork.com/#{username}" "furrynetwork.com"
link_to(username, "https://furrynetwork.com/#{username}", "furrynetwork.com")
end
def link_to_inkbunny(username)
link_to username "https://inkbunny.net/#{username}" "inkbunny.net"
link_to(username, "https://inkbunny.net/#{username}", "inkbunny.net")
end
def link_to_sofurry(username)
link_to username "https://#{username}.sofurry.com" "sofurry.com"
link_to(username, "https://#{username}.sofurry.com", "sofurry.com")
end
def link_to_e621(username)
@ -351,43 +351,43 @@ class Formatter
end
def link_to_deviantart(username)
link_to username "https://#{username}.deviantart.com" "deviantart.com"
link_to(username, "https://#{username}.deviantart.com", "deviantart.com")
end
def link_to_artstation(username)
link_to username "https://www.artstation.com/#{username}" "artstation.com"
link_to(username, "https://www.artstation.com/#{username}", "artstation.com")
end
def link_to_github(username)
link_to username "https://github.com/#{username}" "github.com"
link_to(username, "https://github.com/#{username}", "github.com")
end
def link_to_gitlab(username)
link_to username "https://gitlab.com/#{username}" "gitlab.com"
link_to(username, "https://gitlab.com/#{username}", "gitlab.com")
end
def link_to_bitbucket(username)
link_to username "https://bitbucket.org/#{username}" "bitbucket.org"
link_to(username, "https://bitbucket.org/#{username}", "bitbucket.org")
end
def link_to_telegram(username)
link_to username "https://t.me/#{username}" "telegram.org"
link_to(username, "https://t.me/#{username}", "telegram.org")
end
def link_to_picarto(username)
link_to username "https://picarto.tv/#{username}" "picarto.tv"
link_to(username, "https://picarto.tv/#{username}", "picarto.tv")
end
def link_to_twitch(username)
link_to username "https://twitch.tv/#{username}" "twitch.tv"
link_to(username, "https://twitch.tv/#{username}", "twitch.tv")
end
def link_to_reddit(username)
link_to username "https://reddit.com/u/#{username}" "reddit.com"
link_to(username, "https://reddit.com/u/#{username}", "reddit.com")
end
def link_to_poizen(username)
link_to username "https://poizen.me/#{username}" "poizen.me"
link_to(username, "https://poizen.me/#{username}", "poizen.me")
end
def link_to(username, url, domain)