Lock notification says "locked" even when the discussion is unlocked
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with locale/en.yml at the linked notification text, then trace the lock and unlock notification data sent to the client. Reproduce the lock and unlock actions and verify that the delivered notification uses distinct wording for each state.
Written by the indexing model from the issue text.
Description
Bug Report
Current Behavior
Currently when you lock a discussion the web notification that is generated says "{user} locked".
The text is the same even if the admin/mod actually unlocked the discussion.
https://github.com/flarum/lock/blob/c4383c318899fce6d5e7c936695edbe5f7f49c88/locale/en.yml#L28
Steps to Reproduce
- Lock a discussion
- Notice the text of the notification delivered to the discussion author
Expected Behavior
I think the notification text should distinguish between locked/unlocked.
Environment
- Flarum version: 1.2.0
Possible Solution
The notification data should include whether the action is lock or unlock, in order to expose that information to the client.
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flarum/issue-archive
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flarum/issue-archive#1 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
flarum/issue-archive#3 · 1 comment ·
-
type/infrastructure
Difficulty 4/5 3-5 days Newbie friendliness 35/100
flarum/issue-archive#4 · 1 comment · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
flarum/issue-archive#5 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flarum/issue-archive#8 · 3 reactions ·
All issues in flarum/issue-archive
Similar issues
-
kubernetes-ingestor: fetchCRDMapping() runs even when crossplane.enabled is false, logging a 403 ERROR every runPossibly taken @kc9ddi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TeraSky-OSS/backstage-plugins#228 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
nightscout/nocturne#4057 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day