This commit is contained in:
srgooglo 2020-10-08 18:45:08 +02:00
commit 296f12c67e
3 changed files with 24 additions and 4 deletions

View File

@ -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:

View File

@ -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)

View File

@ -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) {
}