Missing title in notifications about moderation comments

Aperta
#6,276 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PHP
Stelle
248
Fork
147
Merge medio
17m
PR unite (30g)
21

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di WoltLab/WCF

Tutte le issue di WoltLab/WCF

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.