Persist UI settings, add missing localizations for German
This commit is contained in:
parent
23ebf60b95
commit
75f80bef10
25 changed files with 305 additions and 67 deletions
|
@ -104,7 +104,7 @@ class Account < ApplicationRecord
|
|||
end
|
||||
|
||||
def subscribed?
|
||||
subscription_expires_at
|
||||
!subscription_expires_at.blank?
|
||||
end
|
||||
|
||||
def favourited?(status)
|
||||
|
@ -189,7 +189,7 @@ class Account < ApplicationRecord
|
|||
def requested_map(target_account_ids, account_id)
|
||||
follow_mapping(FollowRequest.where(target_account_id: target_account_ids, account_id: account_id), :target_account_id)
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def follow_mapping(query, field)
|
||||
|
|
5
app/models/web.rb
Normal file
5
app/models/web.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module Web
|
||||
def self.table_name_prefix
|
||||
'web_'
|
||||
end
|
||||
end
|
7
app/models/web/setting.rb
Normal file
7
app/models/web/setting.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Web::Setting < ApplicationRecord
|
||||
belongs_to :user
|
||||
|
||||
validates :user, uniqueness: true
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue