구帖子를 삭제할 수 없습니다

helm을 사용하여 서버에 bitnami discourse 이미지를 배포하고 있으며, 주로 API를 통해 상호작용하고 있습니다. 다음과 같은 문제를 겪고 있습니다:

사용자는 주제를 생성한 후 바로 삭제할 수 있습니다. 그러나 약 1주가 지나면, 같은 사용자가 게시물을 삭제하려고 할 때 오류가 발생합니다. 로그를 확인해 보면 다음과 같은 내용이 보입니다.

Started DELETE “/t/124” for 162.220.157.139 at 2022-06-20 19:41:43 +0000
Mon, Jun 20 2022 2:41:43 pm Processing by TopicsController#destroy as JSON
Mon, Jun 20 2022 2:41:43 pm Parameters: {“id”=>“124”, “topic”=>{}}
Mon, Jun 20 2022 2:41:43 pm Can’t verify CSRF token authenticity.
Mon, Jun 20 2022 2:41:43 pm Completed 422 Unprocessable Entity in 29ms (Views: 0.2ms ActiveRecord: 0.0ms Allocations: 2357)

성공적인 삭제에 대한 로그는 다음과 같습니다:

Started DELETE “/t/135” for 162.220.157.139 at 2022-06-20 21:37:07 +0000
Mon, Jun 20 2022 4:37:08 pm Processing by TopicsController#destroy as JSON
Mon, Jun 20 2022 4:37:08 pm Parameters: {“id”=>“135”, “topic”=>{}}
Mon, Jun 20 2022 4:37:08 pm Can’t verify CSRF token authenticity.
Mon, Jun 20 2022 4:37:08 pm Rendered text template (Duration: 0.0ms Allocations: 1)
Mon, Jun 20 2022 4:37:08 pm Completed 200 OK in 301ms (Views: 1.4ms ActiveRecord: 0.0ms Allocations: 11569)

실제 UI에서도 오래된 메시지를 삭제하려고 하면 다음과 같은 메시지가 표시됩니다:

You don’t have permission to delete this topic. If you really want it to be deleted, submit a flag for moderator attention together with reasoning.

시간이 지나면 사용자가 자신의 주제를 삭제할 수 없는 이유가 무엇일까요?

또한, 로그인에는 oidc 인증(Keycloak)이 사용되고 있습니다.

해당 설정이 있습니다. 사이트 설정에서 '삭제’를 검색하면 찾을 수 있습니다.

답글이 없는 한 사용자는 자신의 주제를 삭제할 수 있습니다. 답글이 있는 경우 해당 오류가 발생합니다. 이는 스태프의 인지나 승인 없이 다른 사용자의 콘텐츠를 삭제하는 것을 방지하기 위한 조치입니다.

그게 다인 것 같아요. post edit time limit처럼 삭제 기간이 있는 줄 알았거든요.

설정에서 게시글, 주제, 삭제/제거에 해당할 수 있는 모든 항목을 샅샅이 확인하고 변경해 보았지만, 아무런 효과가 없었습니다.

해당 사용자가 삭제하려고 하는 게시글에는 답변이 없으며, 1주일 이상 지난 게시글입니다. 사용자는 16시간 전에 작성된 게시글은 삭제할 수 있었으며, 오늘 늦게 24시간 전에 작성된 게시글도 테스트할 예정입니다.

해당 사용자와 삭제할 수 없는 주제의 정보는 다음과 같습니다:

{
  user: {
    id: 20,
    username: 'molenchuk-tite-99ecd',
    name: 'teacher firstgrade',
    avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png',
    email: 'molenchuk+titeacher@weare5stones.com',
    secondary_emails: [],
    active: true,
    admin: false,
    moderator: false,
    last_seen_at: '2022-06-20T21:49:19.750Z',
    last_emailed_at: null,
    created_at: '2022-06-13T16:33:29.655Z',
    last_seen_age: 60354.179525574,
    last_emailed_age: null,
    created_at_age: 684104.274168186,
    trust_level: 1,
    manual_locked_trust_level: null,
    flag_level: 0,
    title: null,
    time_read: 168,
    staged: false,
    days_visited: 1,
    posts_read_count: 6,
    topics_entered: 1,
    post_count: 0
  },
  topic: {
    post_stream: { 
      posts: [
        {
          id: 127,
          name: 'teacher firstgrade',
          username: 'molenchuk-tite-99ecd',
          avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png',
          created_at: '2022-06-13T16:36:45.485Z',
          cooked: '<p>This message is to confirm the system is working now.</p>',
          post_number: 1,
          post_type: 1,
          updated_at: '2022-06-13T16:36:45.485Z',
          reply_count: 0,
          reply_to_post_number: null,
          quote_count: 0,
          incoming_link_count: 0,
          reads: 2,
          readers_count: 1,
          score: 0.2,
          yours: false,
          topic_id: 124,
          topic_slug: 'confirmation-data',
          display_username: 'teacher firstgrade',
          primary_group_name: null,
          primary_group_flair_url: null,
          primary_group_flair_bg_color: null,
          primary_group_flair_color: null,
          version: 1,
          can_edit: true,
          can_delete: false,
          can_recover: false,
          can_wiki: true,
          read: false,
          user_title: null,
          bookmarked: false,
          actions_summary: [
            { id: 2, can_act: true },
            { id: 3, can_act: true },
            { id: 4, can_act: true },
            { id: 8, can_act: true },
            { id: 6, can_act: true },
            { id: 7, can_act: true }
          ],
          moderator: false,
          admin: false,
          staff: false,
          user_id: 20,
          hidden: false,
          trust_level: 1,
          deleted_at: null,
          user_deleted: false,
          edit_reason: null,
          can_view_edit_history: true,
          wiki: false,
          reviewable_id: 0,
          reviewable_score_count: 0,
          reviewable_score_pending_count: 0
        }
      ],
      stream: [ 127 ]
    },
    timeline_lookup: [ [ 1, 7 ] ],
    suggested_topics: [ [Object], [Object], [Object], [Object], [Object] ],
    id: 124,
    title: 'Confirmation Data',
    fancy_title: 'Confirmation Data',
    posts_count: 1,
    created_at: '2022-06-13T16:36:45.265Z',
    views: 9,
    reply_count: 0,
    like_count: 0,
    last_posted_at: '2022-06-13T16:36:45.485Z',
    visible: true,
    closed: false,
    archived: false,
    has_summary: false,
    archetype: 'regular',
    slug: 'confirmation-data',
    category_id: 22,
    word_count: 12,
    deleted_at: null,
    user_id: 20,
    featured_link: null,
    pinned_globally: false,
    pinned_at: null,
    pinned_until: null,
    image_url: null,
    slow_mode_seconds: 0,
    draft: null,
    draft_key: 'topic_124',
    draft_sequence: 0,
    unpinned: null,
    pinned: false,
    current_post_number: 1,
    highest_post_number: 1,
    deleted_by: null,
    has_deleted: false,
    actions_summary: [
      { id: 4, count: 0, hidden: false, can_act: true },
      { id: 8, count: 0, hidden: false, can_act: true },
      { id: 7, count: 0, hidden: false, can_act: true }
    ],
    chunk_size: 20,
    bookmarked: false,
    topic_timer: null,
    message_bus_last_id: 0,
    participant_count: 1,
    show_read_indicator: false,
    thumbnails: null,
    details: {
      can_edit: true,
      notification_level: 1,
      can_move_posts: true,
      can_delete: true,
      can_remove_allowed_users: true,
      can_invite_to: true,
      can_create_post: true,
      can_reply_as_new_topic: true,
      can_flag_topic: true,
      can_convert_topic: true,
      can_review_topic: true,
      can_close_topic: true,
      can_archive_topic: true,
      can_split_merge_topic: true,
      can_edit_staff_notes: true,
      can_toggle_topic_visibility: true,
      can_pin_unpin_topic: true,
      can_moderate_category: true,
      can_remove_self_id: 1,
      participants: [
        {
          id: 20,
          username: 'molenchuk-tite-99ecd',
          name: 'teacher firstgrade',
          avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png',
          post_count: 1,
          primary_group_name: null,
          primary_group_flair_url: null,
          primary_group_flair_color: null,
          primary_group_flair_bg_color: null,
          trust_level: 1
        }
      ],
      created_by: {
        id: 20,
        username: 'molenchuk-tite-99ecd',
        name: 'teacher firstgrade',
        avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png'
      },
      last_poster: {
        id: 20,
        username: 'molenchuk-tite-99ecd',
        name: 'teacher firstgrade',
        avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png'
      }
    }
  }
}

UX에서 삭제할 수 있나요?

UX에서도 삭제할 수 없어요

그 메시지는 무엇인가요? (그렇게 하면 해당 오류를 참조하는 코드 위치를 찾을 수 있습니다)

이 메시지가 표시됩니다

이것은 편집 제한 사항을 떠올리게 합니다.

게시물의 텍스트가 변경되었으므로, 삭제 시에도 이 제한 사항이 적용된다고 생각합니다.

이 토픽에서 편집도 문제를 일으켰던 것을 기억합니다

이거가 바로 제가 찾던 것이었네요!