Fix: #950 新規アンテナ作成時にリストへ挿入するを設定しても、ホーム挿入になる (#975)

* Fix: #950 新規アンテナ作成時にリストへ挿入するを設定しても、ホーム挿入になる

* Fix test
This commit is contained in:
KMY(雪あすか) 2025-01-31 12:04:26 +09:00 committed by GitHub
parent 80cace410f
commit 915ee553da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 27 additions and 5 deletions

View file

@ -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

View file

@ -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');

View file

@ -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