about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/status.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 6a02aa13b..859da01ec 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -572,9 +572,13 @@ class Status < ApplicationRecord
     chunks = []
     text.split(/(#!\w+)/).each do |chunk|
       if chunk.start_with?("#!")
-        case chunk[2..-1]
+        case chunk[2..-1].downcase
         when 'permalink'
           chunks << TagManager.instance.url_for(self)
+        when 'cloudroot'
+          chunks << "https://monsterpit.cloud/~/#{account.username}"
+        when 'blogroot'
+          chunks << "https://monsterpit.blog/~/#{account.username}"
         else
           chunks << chunk
         end