瀏覽代碼

Update Status model

Daniel Supernault 6 年之前
父節點
當前提交
070dc14f31
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      app/Status.php

+ 6 - 0
app/Status.php

@@ -44,6 +44,12 @@ class Status extends Model
         'loop'
     ];
 
+    const MAX_MENTIONS = 5;
+
+    const MAX_HASHTAGS = 30;
+
+    const MAX_LINKS = 2;
+
     public function profile()
     {
         return $this->belongsTo(Profile::class);