mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-17 20:11:27 +00:00
commit
b88671bff5
2 changed files with 6 additions and 0 deletions
|
@ -70,6 +70,8 @@ class PronounService {
|
|||
'her',
|
||||
'hers',
|
||||
'hir',
|
||||
'it',
|
||||
'its',
|
||||
'mer',
|
||||
'mers',
|
||||
'ne',
|
||||
|
|
|
@ -369,6 +369,10 @@
|
|||
async filterPostMeta(media) {
|
||||
let fbfix = await this.fixFacebookEncoding(media);
|
||||
let json = JSON.parse(fbfix);
|
||||
/* Sometimes the JSON isn't an array, when there's only one post */
|
||||
if (!Array.isArray(json)) {
|
||||
json = new Array(json);
|
||||
}
|
||||
let res = json.filter(j => {
|
||||
let ids = j.media.map(m => m.uri).filter(m => {
|
||||
if(this.config.allow_video_posts == true) {
|
||||
|
|
Loading…
Reference in a new issue