Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add ability to subscribe from the channel account page

Chocobozzzbc01017be99c
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
index 63f0514fd0..25b74027ec 100644
--- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
+++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
@@ -9,6 +9,8 @@
<div>{{ videoChannel.displayName }}</div>
<div i18n class="followers">{{ videoChannel.followersCount }} subscribers</div>
</a>
+
+ <my-subscribe-button [videoChannel]="videoChannel"></my-subscribe-button>
</div>
<my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss
index 3afcca310f..0c2ee2d0d0 100644
--- a/client/src/sass/include/_miniature.scss
+++ b/client/src/sass/include/_miniature.scss
@@ -156,6 +156,8 @@ $play-overlay-width: 18px;
font-size: 24px;
font-weight: $font-semibold;
margin-bottom: 30px;
+ display: flex;
+ justify-content: space-between;
a {
&:hover, &:focus:not(.focus-visible), &:active {
diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts
index 9b34891205..5a1d652f23 100644
--- a/server/controllers/api/accounts.ts
+++ b/server/controllers/api/accounts.ts
@@ -117,7 +117,7 @@ async function listAccountChannels (req: express.Request, res: express.Response)
accountId: res.locals.account.id,
start: req.query.start,
count: req.query.count,
- sort: req.query.sort,
+ sort: req.query.sort
}
const resultList = await VideoChannelModel.listByAccount(options)