mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-09 20:40:53 +01:00
17 lines
408 B
TypeScript
17 lines
408 B
TypeScript
import { linkFixer } from './linkFixer';
|
|
import { Strings } from './strings';
|
|
|
|
export const handleQuote = (quote: TweetPartial): string | null => {
|
|
console.log('Quoting status ', quote.id_str);
|
|
|
|
let str = `\n`;
|
|
str += Strings.QUOTE_TEXT.format({
|
|
name: quote.user?.name,
|
|
screen_name: quote.user?.screen_name
|
|
});
|
|
|
|
str += ` \n\n`;
|
|
str += linkFixer(quote, quote.full_text);
|
|
|
|
return str;
|
|
};
|