1
0
Fork 0
forked from forgejo/forgejo

rename tributeValues to mentionValues (#25375)

Very simple change, just rename this variable so it does not feature the
name of the module.
This commit is contained in:
silverwind 2023-06-20 05:32:49 +02:00 committed by GitHub
parent 33cd74ad70
commit ef6f5f0124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,7 @@ export function matchMention(queryText) {
// results is a map of weights, lower is better
const results = new Map();
for (const obj of window.config.tributeValues) {
for (const obj of window.config.mentionValues) {
const index = obj.key.toLowerCase().indexOf(query);
if (index === -1) continue;
const existing = results.get(obj);