feat: update placeholder system
This commit is contained in:
1 parent
d24e94b365
commit
f2c9b5171b
5 files changed
+60
-25
No files matched your search
@@ -20,3 +20,35 @@ export const searchParam = (
|
||||
|
||||
export const fullCommunityName = (name: string, actorId: string) =>
|
||||
`${name}@${new URL(actorId).hostname}`
|
||||
|
||||
export const placeholders = {
|
||||
url: ['https://notas.cam', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'],
|
||||
post: [
|
||||
'Is starting nuclear warfare illegal?',
|
||||
'A cool photo I took before the destruction of mankind!',
|
||||
'AITA for ending all contention and causing world peace?',
|
||||
'BREAKING NEWS: Police break into gun shop, find weapons',
|
||||
'How do I make sure my pet rock stays alive?',
|
||||
'My cat just invented a time machine, what do I do?',
|
||||
'Unpopular opinion: world peace and global happiness would be beneficial to humanity',
|
||||
'LPT: The smaller weights are easier to lift than the bigger weights in a gym',
|
||||
'javascript bad',
|
||||
'ELI5: What is 4 + 8?',
|
||||
],
|
||||
comment: [
|
||||
'aint no way',
|
||||
'new response just dropped',
|
||||
'<insert funny joke here>',
|
||||
'say, why did we name restaurant staff after computers, anyway?',
|
||||
`this.\nedit: thanks for 1 upvote😃😃😃!`,
|
||||
'Officer, I drop kicked that child in self defense! You gotta believe me man.',
|
||||
'this comment placeholder is very important dont forget',
|
||||
'As Abraham Lincoln once said, "don\'t believe everything you see on the internet."',
|
||||
'existential crisis in progress',
|
||||
],
|
||||
get: (type: 'url' | 'post' | 'comment') => {
|
||||
return placeholders[type][
|
||||
Math.floor(Math.random() * placeholders[type].length)
|
||||
]
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user