Skip to content

Commit

Permalink
fix: Load and show previews in the Activity app view
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Nov 6, 2023
1 parent 8577988 commit 222e971
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/ActivityGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
{{ dateText }}
</h3>
<ul>
<Activity v-for="activity in activities" :key="activity.id" :activity="activity" />
<Activity v-for="activity in activities"
:key="activity.id"
:activity="activity"
:show-previews="true" />
</ul>
</Fragment>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/ActivityAppFeed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function loadActivities() {
const since = lastActivityLoaded.value ?? '0'
loading.value = true
const response = await ncAxios.get(
generateOcsUrl('apps/activity/api/v2/activity/{filter}?limit=3&format=json&since={since}', { filter: props.filter, since }),
generateOcsUrl('apps/activity/api/v2/activity/{filter}?format=json&previews=true&since={since}', { filter: props.filter, since }),
)
allActivities.value.push(...response.data.ocs.data.map((raw) => new ActivityModel(raw)))
lastActivityLoaded.value = response.headers['x-activity-last-given']
Expand Down

0 comments on commit 222e971

Please sign in to comment.