Skip to content

Commit

Permalink
Merge pull request #5302 from pixelfed/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
dansup committed Sep 18, 2024
2 parents 5be19ff + 0ddab93 commit b88671b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Services/PronounService.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public static function pronouns()
'her',
'hers',
'hir',
'it',
'its',
'mer',
'mers',
'ne',
Expand Down
4 changes: 4 additions & 0 deletions resources/assets/components/AccountImport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b88671b

Please sign in to comment.