gitforge/services
patka 31e7aa61b1 Reduce links in chat notifications to avoid multiple previews (#6908)
Some messages had multiple links resulting in multiple previews per message. The superfluous links have been removed leaving only the most important link. All info the other links provided can be immediately accessed through the main link that is left over.

The fork and push messages still have multiple links because from the former you want to see where the fork originates from, the latter has a link per commit.

Resolves #162

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.
  - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [ ] I do not want this change to show in the release notes.
- [x] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6908
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: patka <patka@patka.dev>
Co-committed-by: patka <patka@patka.dev>
2025-02-19 07:08:45 +00:00
..
actions fix(sec): web route update and delete runner variables 2025-02-08 07:21:14 +00:00
agit
asymkey tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
attachment tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
auth [PORT] Remove SHA1 for support for ssh rsa signing (#31857) (#5303) 2025-01-17 03:17:10 +00:00
automerge
context fix(api): use not found status code when appropriate (#6885) 2025-02-12 20:18:33 +00:00
contexttest
convert feat: add pronoun privacy option (#6773) 2025-02-15 13:07:15 +00:00
cron
doctor fix: load settings for valid user and email check (#6674) 2025-01-24 12:23:15 +00:00
externalaccount fix: Revert "allow synchronizing user status from OAuth2 login providers (#31572)" 2024-12-12 05:59:06 +01:00
f3 fix: f3: label color must start with # 2025-01-07 17:13:21 +01:00
federation
feed feat: add commit limit for webhook payload (#6797) 2025-02-07 19:26:50 +00:00
forgejo tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
forms feat: add pronoun privacy option (#6773) 2025-02-15 13:07:15 +00:00
gitdiff Fix parentCommit invalid memory address or nil pointer dereference. (#33204) 2025-01-19 11:52:09 +01:00
indexer
issue demilestone should not include milestone (#32923) 2024-12-28 19:24:24 +00:00
lfs Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-11-05 09:33:15 +01:00
mailer Improve usage of HMAC output for mailer tokens 2024-11-15 10:59:36 +01:00
markup
migrations feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
mirror [gitea] week 2025-04 cherry pick (gitea/main -> forgejo) (#6623) 2025-01-26 08:43:07 +00:00
notify
org
packages chore: teach set module about iter.Seq (#6676) 2025-01-24 16:45:46 +00:00
pull chore: Remove IsCommitStatusContextSuccess 2025-01-31 16:22:29 +01:00
release chore: teach set module about iter.Seq (#6676) 2025-01-24 16:45:46 +00:00
remote
repository Move gitgraph from modules to services layer (#33527) 2025-02-09 10:20:47 +01:00
secrets
shared/automerge
task
uinotification
user feat: add pronoun privacy option (#6773) 2025-02-15 13:07:15 +00:00
webhook Reduce links in chat notifications to avoid multiple previews (#6908) 2025-02-19 07:08:45 +00:00
wiki Show page titles in wiki search results (#6048) 2024-11-24 15:55:34 +01:00