diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b9c0ffec..2e7f4c6d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -6,13 +6,10 @@ name: "CodeQL" on: - push: - branches: [master] pull_request: - # The branches below must be a subset of the branches above branches: [master] schedule: - - cron: '0 18 * * 5' + - cron: '0 0 * * *' jobs: analyze: diff --git a/README.md b/README.md index 027134f3..386d98ac 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,4 @@ [![CodeFactor](https://www.codefactor.io/repository/github/srgooglo/comty/badge)](https://www.codefactor.io/repository/github/srgooglo/comty) [![Trello](https://img.shields.io/badge/Trello-Join%20dashboard-blue)](https://trello.com/invite/b/UbwvlG1I/2bc02725b9b210d2e9e9a82c5040b895/comty-development) [![Discord](https://img.shields.io/badge/dynamic/json?color=%235390d9&label=Discord&query=name&url=https%3A%2F%2Fdiscordapp.com%2Fapi%2Fguilds%2F713713091568861197%2Fwidget.json)](https://discord.gg/uMRSKDW) +![CodeQL](https://github.com/srgooglo/comty/workflows/CodeQL/badge.svg?branch=master) diff --git a/src/models/app.js b/src/models/app.js index 0b6af85a..7d3e659d 100755 --- a/src/models/app.js +++ b/src/models/app.js @@ -118,6 +118,28 @@ export default { }) + queryIndexer([ + { + match: '/s;:id', + to: `/settings?key=:id`, + }, + { + match: '/h;:id', + to: `/hashtag?key=:id`, + }, + { + match: '/p;:id', + to: `/post?key=:id`, + }, + { + match: '/@:id', + to: `/@/:id`, + } + ], (callback) => { + window.location = callback + }) + + if (!service) { }