mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-30 19:42:17 +00:00
Currently in core re-flagging something that is already flagged as spam is not supported, long term we may want to support this but in the meantime we should not be silencing/hiding if the PostActionCreator fails when flagging things as spam. --------- Co-authored-by: Ted Johansson <drenmi@gmail.com>
28 lines
761 B
Ruby
28 lines
761 B
Ruby
# frozen_string_literal: true
|
|
class AiSpamLog < ActiveRecord::Base
|
|
belongs_to :post
|
|
belongs_to :llm_model
|
|
belongs_to :ai_api_audit_log
|
|
belongs_to :reviewable
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: ai_spam_logs
|
|
#
|
|
# id :bigint not null, primary key
|
|
# post_id :bigint not null
|
|
# llm_model_id :bigint not null
|
|
# ai_api_audit_log_id :bigint
|
|
# reviewable_id :bigint
|
|
# is_spam :boolean not null
|
|
# payload :string(20000) default(""), not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
# error :string(3000)
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_ai_spam_logs_on_post_id (post_id)
|
|
#
|