Fix aot build
authorChocobozzz <me@florianbigard.com>
Tue, 9 Jan 2018 16:22:26 +0000 (17:22 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 9 Jan 2018 16:22:26 +0000 (17:22 +0100)
client/package.json
client/src/app/+admin/users/user-edit/user-edit.component.html
client/src/tsconfig.app.json
client/webpack.config.js [deleted file]
client/yarn.lock
server/models/activitypub/actor-follow.ts

index 2d86d91fe857eb22d5d92f8c961485a71c0a46fa..ad07f31b001519090533d57fe86e0c5a1ac3235d 100644 (file)
@@ -57,7 +57,7 @@
     "markdown-it": "^8.4.0",
     "ngx-bootstrap": "2.0.0-rc.0",
     "ngx-chips": "1.6.2",
-    "ngx-clipboard": "^9.0.0",
+    "ngx-clipboard": "9.0.1",
     "ngx-infinite-scroll": "0.7.2",
     "ngx-pipes": "^2.0.5",
     "node-sass": "^4.1.1",
index a69ffee772523717f91fe686d6f18253f315e837..a68dd231badfe2ef9ec43ebf97590f39fa8b92b0 100644 (file)
@@ -64,7 +64,7 @@
 
     <div class="transcoding-information" *ngIf="isTranscodingInformationDisplayed()">
       Transcoding is enabled on server. The video quota only take in account <strong>original</strong> video. <br />
-      In maximum, this user could use ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}.
+      At most, this user could use ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}.
     </div>
   </div>
 
index 39ba8dbacbbe051fdd02481b07af43219296a075..4339f4d4be282602b3e25c4b28cb493cd7b36bef 100644 (file)
@@ -8,6 +8,11 @@
   },
   "exclude": [
     "test.ts",
-    "**/*.spec.ts"
+    "**/*.spec.ts",
+    "../node_modules/ngx-clipboard/**/*.spec.ts"
+  ],
+  "include": [
+    "**/*.ts",
+    "../node_modules/ngx-clipboard/*/**.ts"
   ]
 }
diff --git a/client/webpack.config.js b/client/webpack.config.js
deleted file mode 100644 (file)
index b51057c..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-switch (process.env.NODE_ENV) {
-  case 'prod':
-  case 'production':
-    module.exports = require('./webpack/webpack.prod')({env: 'production'})
-    break
-
-  case 'test':
-  case 'testing':
-    module.exports = require('./webpack/webpack.test')({env: 'test'})
-    break
-
-  case 'dev':
-  case 'development':
-  default:
-    module.exports = require('./webpack/webpack.dev')({env: 'development'})
-}
index 062893f904e9b51c48857754f1b3350edd870376..44d84beaab7cd6207416538c410fd4068596b730 100644 (file)
@@ -4444,7 +4444,7 @@ ngx-chips@1.6.2:
   dependencies:
     ng2-material-dropdown "~0.8.2"
 
-ngx-clipboard@^9.0.0:
+ngx-clipboard@9.0.1:
   version "9.0.1"
   resolved "https://registry.yarnpkg.com/ngx-clipboard/-/ngx-clipboard-9.0.1.tgz#3829ef67d00a447303af4faf96c705de435d80f8"
   dependencies:
index 4cba05e95f0f67a986257dd2e3ec22f875504e3c..c35c712ed94373420a946aa25cb71286bc0ef5a1 100644 (file)
@@ -190,14 +190,21 @@ export class ActorFollowModel extends Model<ActorFollowModel> {
   }
 
   static listAcceptedFollowerSharedInboxUrls (actorIds: number[], t: Sequelize.Transaction) {
-    return ActorFollowModel.createListAcceptedFollowForApiQuery('followers', actorIds, t, undefined, undefined, 'sharedInboxUrl')
+    return ActorFollowModel.createListAcceptedFollowForApiQuery(
+      'DISTINCT(followers)',
+      actorIds,
+      t,
+      undefined,
+      undefined,
+      'sharedInboxUrl'
+    )
   }
 
   static listAcceptedFollowingUrlsForApi (actorIds: number[], t: Sequelize.Transaction, start?: number, count?: number) {
     return ActorFollowModel.createListAcceptedFollowForApiQuery('following', actorIds, t, start, count)
   }
 
-  private static async createListAcceptedFollowForApiQuery (type: 'followers' | 'following',
+  private static async createListAcceptedFollowForApiQuery (type: 'followers' | 'following' | 'DISTINCT(followers)',
                                        actorIds: number[],
                                        t: Sequelize.Transaction,
                                        start?: number,