add copyright text to all our files
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: marie and other Sharkey contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import * as mfm from '@transfem-org/sfm-js';
|
||||
|
||||
export function checkAnimationFromMfm(nodes: mfm.MfmNode[]): boolean {
|
||||
@@ -8,9 +13,9 @@ export function checkAnimationFromMfm(nodes: mfm.MfmNode[]): boolean {
|
||||
node.props.name === 'twitch' ||
|
||||
node.props.name === 'shake' ||
|
||||
node.props.name === 'spin' ||
|
||||
node.props.name === 'jump' ||
|
||||
node.props.name === 'bounce' ||
|
||||
node.props.name === 'rainbow' ||
|
||||
node.props.name === 'jump' ||
|
||||
node.props.name === 'bounce' ||
|
||||
node.props.name === 'rainbow' ||
|
||||
node.props.name === 'sparkle') {
|
||||
return true;
|
||||
} else {
|
||||
@@ -20,7 +25,7 @@ export function checkAnimationFromMfm(nodes: mfm.MfmNode[]): boolean {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if (animatedNodes.length > 0) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user