feat(pleroma): add post visibility
This commit is contained in:
parent
80dcff0440
commit
a7e32b5a3f
3 changed files with 7 additions and 4 deletions
|
@ -2,6 +2,9 @@ const qs = require('qs');
|
|||
const axios = require('axios');
|
||||
const FormData = require('form-data');
|
||||
|
||||
const emojis = { public: 'ðŸŒ', unlisted: 'ðŸ“', private: '🔒ï¸', direct: '✉ï¸' };
|
||||
exports.visibilityEmoji = v => emojis[v] || v;
|
||||
|
||||
const getFilename = header => {
|
||||
if(typeof header !== 'string') return null;
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue