Feature: Add my pins

This commit is contained in:
winkidney
2019-11-30 15:33:56 +08:00
committed by Isaac Bythewood
parent dfe6e46dcc
commit fc045b6cec
2 changed files with 2 additions and 1 deletions

View File

@@ -36,7 +36,7 @@
Boards Boards
</router-link> </router-link>
<router-link <router-link
to="/pins" :to="{ name: 'user', params: {user: user.meta.username} }"
class="navbar-item"> class="navbar-item">
Pins Pins
</router-link> </router-link>

View File

@@ -75,6 +75,7 @@ function createImageItem(pin) {
const image = {}; const image = {};
image.url = pinHandler.escapeUrl(pin.image.thumbnail.image); image.url = pinHandler.escapeUrl(pin.image.thumbnail.image);
image.id = pin.id; image.id = pin.id;
image.owner_id = pin.submitter.id;
image.description = pin.description; image.description = pin.description;
image.tags = pin.tags; image.tags = pin.tags;
image.author = pin.submitter.username; image.author = pin.submitter.username;