Merge pull request #5302 from pixelfed/staging

Staging
This commit is contained in:
daniel 2024-09-18 02:29:13 -06:00 committed by GitHub
commit b88671bff5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -70,6 +70,8 @@ class PronounService {
'her',
'hers',
'hir',
'it',
'its',
'mer',
'mers',
'ne',

View file

@ -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) {