* Fix: #950 新規アンテナ作成時にリストへ挿入するを設定しても、ホーム挿入になる * Fix test
This commit is contained in:
parent
80cace410f
commit
915ee553da
7 changed files with 27 additions and 5 deletions
|
@ -21,7 +21,7 @@ class Api::V1::AntennasController < Api::BaseController
|
|||
end
|
||||
|
||||
def create
|
||||
@antenna = Antenna.create!(antenna_params.merge(account: current_account, list_id: 0))
|
||||
@antenna = Antenna.create!(antenna_params.merge(account: current_account))
|
||||
render json: @antenna, serializer: REST::AntennaSerializer
|
||||
end
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ const NewAntenna: React.FC<{
|
|||
const [stl, setStl] = useState(false);
|
||||
const [ltl, setLtl] = useState(false);
|
||||
const [insertFeeds, setInsertFeeds] = useState(false);
|
||||
const [listId, setListId] = useState('');
|
||||
const [listId, setListId] = useState('0');
|
||||
const [withMediaOnly, setWithMediaOnly] = useState(false);
|
||||
const [ignoreReblog, setIgnoreReblog] = useState(false);
|
||||
const [mode, setMode] = useState('filtering');
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# account_id :bigint(8) not null
|
||||
# list_id :bigint(8) not null
|
||||
# list_id :bigint(8) default(0), not null
|
||||
#
|
||||
class Antenna < ApplicationRecord
|
||||
include Expireable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue