Missing title in notifications about moderation comments

Đang mở
#6,276 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
backend

Hướng nghiên cứu

Start by reviewing commit 7c61c91195a5351616de6b84cc871775173845d8 and trace how moderation comments set the affected object and how notifications determine their recipient. The issue calls for a broad redesign so the recipient is available to notification code without relying on WCF::getUser() or WCF::getSession(). Done means moderation notifications show the affected object's title and notification code no longer depends on those global lookups.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The problem is caused by this change. The change led to the result that setAffectedObject() is no longer set. Unfortunately, the recipient of the notification is required to determine the affected object, but the recipient is not known at the relevant point in the code.

The notifications would probably have to be fundamentally overhauled here and the recipient always made known (similar to the language). WCF::getUser() or WCF::getSession() should never be used within notifications.

Ngôn ngữ chính
PHP
Star
248
Fork
147
Merge trung bình
17 phút
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của WoltLab/WCF

Tất cả issue của WoltLab/WCF

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.