Circle avatar
authorChocobozzz <me@florianbigard.com>
Wed, 3 Jan 2018 10:54:42 +0000 (11:54 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 3 Jan 2018 10:54:42 +0000 (11:54 +0100)
client/src/app/account/account-settings/account-settings.component.scss
client/src/app/menu/menu.component.scss
client/src/sass/include/_mixins.scss
server/controllers/api/users.ts
server/lib/activitypub/process/process-update.ts

index c8a27dbcd060b7bf39cfc1f85eb5b2e9db54ec44..fbd1cb9f03bfdb4c7fd2d1c826ef68a636dc894f 100644 (file)
@@ -6,6 +6,7 @@
 
   img {
     @include avatar(50px);
+
     margin-right: 15px;
   }
 
index 8cb94b3dd737dc14fa84ededb060ddb1898cd9c0..ae167cfb6de29f257f317dc047d7d76836e990ef 100644 (file)
@@ -21,10 +21,10 @@ menu {
     margin-bottom: 35px;
 
     img {
+      @include avatar(34px);
+
       margin-left: 20px;
       margin-right: 10px;
-
-      @include avatar(34px);
     }
 
     .logged-in-info {
index 140de1b2c6f54ab2b14e8bfc8833fc308d5d97b1..7bfc93f08ca71bc4fd99e7b267dc370ae0dedd72 100644 (file)
   }
 }
 
-@mixin avatar ($size) {
-  width: $size;
-  height: $size;
-}
-
 @mixin icon ($size) {
   display: inline-block;
   background-repeat: no-repeat;
   cursor: pointer;
 }
 
-
 @mixin peertube-select-container ($width) {
   padding: 0;
   margin: 0;
   }
 }
 
+
+@mixin avatar ($size) {
+  object-fit: cover;
+  border-radius:50%;
+  width: $size;
+  height: $size;
+}
index 6c24434f2f588a15949c4b328fbbb1ef97c704dd..d37813595294e77c592c1cf454a511c997834bea 100644 (file)
@@ -3,7 +3,7 @@ import { extname, join } from 'path'
 import * as sharp from 'sharp'
 import * as uuidv4 from 'uuid/v4'
 import { UserCreate, UserRight, UserRole, UserUpdate, UserUpdateMe, UserVideoRate as FormattedUserVideoRate } from '../../../shared'
-import { renamePromise, unlinkPromise } from '../../helpers/core-utils'
+import { unlinkPromise } from '../../helpers/core-utils'
 import { retryTransactionWrapper } from '../../helpers/database-utils'
 import { logger } from '../../helpers/logger'
 import { createReqFiles, getFormattedObjects } from '../../helpers/utils'
index a5ad406cba7c8c0cb7a1c85e5cfd40e988b97cfd..bc8ae5cc612ff25842a26c2ae3a3b24982990f78 100644 (file)
@@ -65,6 +65,7 @@ async function updateRemoteVideo (actor: ActorModel, activity: ActivityUpdate) {
       videoInstance.set('licence', videoData.licence)
       videoInstance.set('language', videoData.language)
       videoInstance.set('nsfw', videoData.nsfw)
+      videoInstance.set('commentsEnabled', videoData.commentsEnabled)
       videoInstance.set('privacy', videoData.privacy)
       videoInstance.set('description', videoData.description)
       videoInstance.set('duration', videoData.duration)