Compare commits

...

4 Commits

Author SHA1 Message Date
Sam Smucny 9beca6fcf8
Merge branch 'develop' into ssmucny-events 2023-07-28 18:19:33 +00:00
Kagami Sascha Rosylight 339086995f
chore(frontend): support Spotify for brainDiver (#11407)
* chore(frontend): support Spotify for brainDiver

* no lowercase

* album

* syntax fix

* Update packages/frontend/src/components/MkPostForm.vue

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* reformat

---------

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2023-07-28 17:46:43 +09:00
syuilo bbd618a258 Update CHANGELOG.md 2023-07-28 14:09:04 +09:00
syuilo ab3cd7b837 chore: add missing license identifier 2023-07-28 14:02:58 +09:00
5 changed files with 44 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<!-- <!--
## 13.x.x (unreleased) ## 2023.x.x (unreleased)
### General ### General
- -
@ -12,6 +12,17 @@
--> -->
## 2023.8.0 (unreleased)
### General
- OAuth 2.0のサポート
### Client
-
### Server
-
## 13.14.2 ## 13.14.2
### Client ### Client

View File

@ -1,3 +1,8 @@
/*
* SPDX-FileCopyrightText: syuilo and other misskey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
import dns from 'node:dns/promises'; import dns from 'node:dns/promises';
import { fileURLToPath } from 'node:url'; import { fileURLToPath } from 'node:url';
import { Inject, Injectable } from '@nestjs/common'; import { Inject, Injectable } from '@nestjs/common';

View File

@ -1,3 +1,8 @@
/*
* SPDX-FileCopyrightText: syuilo and other misskey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
/** /**
* Basic OAuth tests to make sure the library is correctly integrated to Misskey * Basic OAuth tests to make sure the library is correctly integrated to Misskey
* and not regressed by version updates or potential migration to another library. * and not regressed by version updates or potential migration to another library.

View File

@ -777,18 +777,25 @@ async function post(ev?: MouseEvent) {
claimAchievement('notes1'); claimAchievement('notes1');
} }
const text = postData.text?.toLowerCase() ?? ''; const text = postData.text ?? '';
if ((text.includes('love') || text.includes('❤')) && text.includes('misskey')) { const lowerCase = text.toLowerCase();
if ((lowerCase.includes('love') || lowerCase.includes('❤')) && lowerCase.includes('misskey')) {
claimAchievement('iLoveMisskey'); claimAchievement('iLoveMisskey');
} }
if ( if ([
text.includes('https://youtu.be/Efrlqw8ytg4'.toLowerCase()) || 'https://youtu.be/Efrlqw8ytg4',
text.includes('https://www.youtube.com/watch?v=Efrlqw8ytg4'.toLowerCase()) || 'https://www.youtube.com/watch?v=Efrlqw8ytg4',
text.includes('https://m.youtube.com/watch?v=Efrlqw8ytg4'.toLowerCase()) || 'https://m.youtube.com/watch?v=Efrlqw8ytg4',
text.includes('https://youtu.be/XVCwzwxdHuA'.toLowerCase()) ||
text.includes('https://www.youtube.com/watch?v=XVCwzwxdHuA'.toLowerCase()) || 'https://youtu.be/XVCwzwxdHuA',
text.includes('https://m.youtube.com/watch?v=XVCwzwxdHuA'.toLowerCase()) 'https://www.youtube.com/watch?v=XVCwzwxdHuA',
) { 'https://m.youtube.com/watch?v=XVCwzwxdHuA',
'https://open.spotify.com/track/3Cuj0mZrlLoXx9nydNi7RB',
'https://open.spotify.com/track/7anfcaNPQWlWCwyCHmZqNy',
'https://open.spotify.com/track/5Odr16TvEN4my22K9nbH7l',
'https://open.spotify.com/album/5bOlxyl4igOrp2DwVQxBco',
].some(url => text.includes(url))) {
claimAchievement('brainDiver'); claimAchievement('brainDiver');
} }

View File

@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
-->
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader/></template> <template #header><MkPageHeader/></template>