Added/Updated admin dashboard tables
• Added: - New Account filtering - PreviewCard viewing/sorting/filtering deleting (todo) - DeletePreviewCardWorker, Service - Status viewing/sorting/filtering deleting - ChatMessage viewing/sorting/filtering deleting (todo) - Account > Follows view • Updated: - LinkBlock to sort alphabetically - Groups to be under "Moderation" instead of "Admin" in navigation.rb - Status in admin to have group name/link - Reports reset button - Group filtering/sorting - LinkBlock filtering/sorting - Account now has bio and few more data points in dashboard
This commit is contained in:
@@ -14,6 +14,8 @@ class LinkBlock < ApplicationRecord
|
||||
|
||||
validates :link, presence: true, uniqueness: true
|
||||
|
||||
scope :alphabetical, -> { reorder(link: :asc) }
|
||||
|
||||
def self.block?(text)
|
||||
return false if text.nil?
|
||||
return false if text.length < 1
|
||||
|
||||
Reference in New Issue
Block a user