Skip to content

Commit

Permalink
Fixed multi paste bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianFun123 committed May 6, 2023
1 parent 9eb19ea commit 8fcdf78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/views/Paste.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default {
this.multiPastesSelected = i
const tab = this.multiPastes[i]
this.rawContent = tab.contents
this.t(tab.name, tab.contents)
this.highlight(tab.name, tab.contents)
},
async highlight(title, contents) {
const [, language, originalEnding] = getLanguageByFileName(title)
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/PublicPastes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export default {
async load() {
this.loading = true
this.trendingPastes = await this.pastefyAPI.get("/api/v2/public-pastes/trending", {trending: 'true', page_limit: 5})
this.newPastes = await this.pastefyAPI.get("/api/v2/public-pastes/latest", {page_limit: 5})
this.allTimeTrendingPastes = await this.pastefyAPI.get("/api/v2/public-pastes/trending", {page_limit: 5})
this.trendingPastes = await this.pastefyAPI.get("/api/v2/public-pastes/trending", {trending: 'true', page_limit: 5, shorten_content: true})
this.newPastes = await this.pastefyAPI.get("/api/v2/public-pastes/latest", {page_limit: 5, shorten_content: true})
this.allTimeTrendingPastes = await this.pastefyAPI.get("/api/v2/public-pastes/trending", {page_limit: 5, shorten_content: true})
},
async loadSearch() {
this.searchResults = await this.pastefyAPI.get("/api/v2/public-pastes/latest", {
Expand Down

0 comments on commit 8fcdf78

Please sign in to comment.